Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 93.84 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00181/0.001811, allocations: 184 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002783/0.0002783, allocations: 7.344 kB / 300.8 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1289, allocations: 50.41 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004896/0.1339, allocations: 3.214 MB / 354.4 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.1366, allocations: 1.364 MB / 355.8 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003126/0.137, allocations: 11.94 kB / 355.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007698/0.1378, allocations: 205.9 kB / 356 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006981/0.1385, allocations: 279.2 kB / 356.3 MB, free: 6.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007051/0.1392, allocations: 227 kB / 356.5 MB, free: 6.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.1399, allocations: 475.5 kB / 357 MB, free: 5.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.1402, allocations: 148.4 kB / 357.1 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.1405, allocations: 231.2 kB / 357.3 MB, free: 5.457 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003481/0.1409, allocations: 250.9 kB / 357.6 MB, free: 5.211 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.776e-05/0.1409, allocations: 24 kB / 357.6 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.1412, allocations: 63.91 kB / 357.7 MB, free: 5.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.1413, allocations: 111.6 kB / 357.8 MB, free: 5.016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.1415, allocations: 133.4 kB / 357.9 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006359/0.1421, allocations: 0.4908 MB / 358.4 MB, free: 4.387 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1421, allocations: 0 / 358.4 MB, free: 4.387 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1421, allocations: 0 / 358.4 MB, free: 4.387 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1421, allocations: 0 / 358.4 MB, free: 4.387 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001625/0.1438, allocations: 0.8557 MB / 359.3 MB, free: 3.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.1438, allocations: 12.03 kB / 359.3 MB, free: 3.461 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.794e-05/0.1439, allocations: 78.52 kB / 359.3 MB, free: 3.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.1441, allocations: 71.11 kB / 359.4 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006076/0.1447, allocations: 393.9 kB / 359.8 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.1447, allocations: 29 kB / 359.8 MB, free: 2.852 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-05/0.1448, allocations: 36 kB / 359.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007732/0.1456, allocations: 433.6 kB / 360.3 MB, free: 2.371 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.1456, allocations: 7.922 kB / 360.3 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.943e-05/0.1457, allocations: 19.98 kB / 360.3 MB, free: 2.344 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.1457, allocations: 15.95 kB / 360.3 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000653/0.1463, allocations: 307.8 kB / 360.6 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002679/0.149, allocations: 1.718 MB / 362.3 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007276/0.1498, allocations: 369.2 kB / 362.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.1498, allocations: 7.938 kB / 362.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004842/0.1503, allocations: 262.4 kB / 363 MB, free: 15.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.1503, allocations: 0 / 363 MB, free: 15.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002228/0.1526, allocations: 1.025 MB / 364 MB, free: 14.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001746/0.1528, allocations: 183.9 kB / 364.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006317/0.1534, allocations: 0.494 MB / 364.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.1535, allocations: 33.7 kB / 364.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.1537, allocations: 252.4 kB / 365 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.1538, allocations: 130.2 kB / 365.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.922e-05/0.1538, allocations: 4 kB / 365.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.1541, allocations: 362.8 kB / 365.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.1544, allocations: 116.8 kB / 365.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.1547, allocations: 213.3 kB / 365.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.155, allocations: 129.5 kB / 365.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.155, allocations: 4 kB / 365.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000868/0.1558, allocations: 473 kB / 366.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.1559, allocations: 4 kB / 366.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1559, allocations: 0 / 366.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005355/0.1564, allocations: 175.4 kB / 366.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.1567, allocations: 39.92 kB / 366.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00571/0.1624, allocations: 5.994 MB / 372.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.1629, allocations: 51.7 kB / 372.6 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.163, allocations: 15.98 kB / 372.6 MB, free: 5.137 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003533/0.1633, allocations: 192.1 kB / 372.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.536e-05/0.1634, allocations: 59.3 kB / 372.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.1636, allocations: 52.77 kB / 372.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1636, allocations: 4 kB / 372.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1636, allocations: 0 / 372.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.1636, allocations: 7.984 kB / 372.9 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006262/0.1642, allocations: 493.1 kB / 373.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1642, allocations: 3.984 kB / 373.4 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.1644, allocations: 27.94 kB / 373.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004448/0.1648, allocations: 163.3 kB / 373.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.1649, allocations: 4 kB / 373.6 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004947/0.1698, allocations: 5.852 MB / 379.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.1699, allocations: 3.984 kB / 379.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.171, allocations: 0.5074 MB / 380 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.1713, allocations: 160.4 kB / 380.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.835e-05/0.1713, allocations: 12 kB / 380.1 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000275/0.1716, allocations: 31.97 kB / 380.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.1718, allocations: 55.92 kB / 380.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.1718, allocations: 11.94 kB / 380.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004676/0.1723, allocations: 363.1 kB / 380.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1723, allocations: 0 / 380.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009057/0.1732, allocations: 171.7 kB / 380.8 MB, free: 12.35 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002412/0.1756, allocations: 1.369 MB / 382.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.177, allocations: 0.7994 MB / 382.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.177, allocations: 0 / 382.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008307/0.1779, allocations: 0.6549 MB / 383.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005941/0.1785, allocations: 108.3 kB / 383.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00613/0.1846, allocations: 3.307 MB / 387 MB, free: 6.055 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007539/0.1854, allocations: 0.8748 MB / 387.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003174/0.1858, allocations: 44.17 kB / 387.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.186, allocations: 171.4 kB / 388.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of SimCode: time 3.677e-06/0.1861, allocations: 0 / 388.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03206/0.2181, allocations: 12.68 MB / 400.8 MB, free: 8.555 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005003/0.2187, allocations: 261 kB / 401 MB, free: 8.195 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/2.503, allocations: 0 / 401 MB, free: 8.195 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat