Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",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.001216/0.001216, allocations: 100.3 kB / 16.95 MB, free: 6.453 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.001198/0.001198, allocations: 183.4 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006416/0.0006417, allocations: 16 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1248, allocations: 47.58 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00271/0.1276, allocations: 1.497 MB / 329.9 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.1293, allocations: 0.8824 MB / 330.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1295, allocations: 4 kB / 330.8 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006125/0.1301, allocations: 155.6 kB / 331 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002697/0.1304, allocations: 103.6 kB / 331.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003913/0.1308, allocations: 131.7 kB / 331.2 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.131, allocations: 175.5 kB / 331.4 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.1311, allocations: 29.53 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.1313, allocations: 71.64 kB / 331.5 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.1314, allocations: 79.67 kB / 331.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.1314, allocations: 4 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.1316, allocations: 31.98 kB / 331.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.1316, allocations: 47.81 kB / 331.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.315e-05/0.1317, allocations: 53.64 kB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.1319, allocations: 155.9 kB / 331.8 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.132, allocations: 11.98 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.132, allocations: 0 / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.132, allocations: 3.938 kB / 331.9 MB, free: 0.5391 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009051/0.1329, allocations: 0.5002 MB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1329, allocations: 8.031 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.097e-05/0.133, allocations: 42.55 kB / 332.4 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.928e-05/0.1331, allocations: 19.81 kB / 332.4 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.1334, allocations: 245.5 kB / 332.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.1334, allocations: 8 kB / 332.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.1335, allocations: 11.92 kB / 332.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002471/0.1337, allocations: 110 kB / 332.8 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1337, allocations: 4 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.1338, allocations: 4 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.1338, allocations: 3.984 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.1339, allocations: 51.91 kB / 332.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007149/0.1347, allocations: 0.6183 MB / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.1349, allocations: 119.9 kB / 333.6 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.135, allocations: 50.56 kB / 333.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.1351, allocations: 7.984 kB / 333.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.1353, allocations: 125.8 kB / 333.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.1353, allocations: 4 kB / 333.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004367/0.1358, allocations: 173.3 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.409e-05/0.1359, allocations: 140.4 kB / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.1362, allocations: 285 kB / 334.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.1362, allocations: 29.7 kB / 334.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.928e-05/0.1363, allocations: 120.4 kB / 334.5 MB, free: 13.58 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.817e-05/0.1364, allocations: 35.77 kB / 334.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-06/0.1364, allocations: 4 kB / 334.5 MB, free: 13.54 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1366, allocations: 326.8 kB / 334.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.653e-05/0.1366, allocations: 27.98 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.1368, allocations: 85.98 kB / 335 MB, free: 13.08 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.016e-05/0.1369, allocations: 40.06 kB / 335 MB, free: 13.04 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1369, allocations: 4 kB / 335 MB, free: 13.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002669/0.1372, allocations: 137.3 kB / 335.1 MB, free: 12.89 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1372, allocations: 6.656 kB / 335.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1372, allocations: 8.094 kB / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1372, allocations: 0 / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.071e-05/0.1373, allocations: 23.92 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.1373, allocations: 4 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.1375, allocations: 19.84 kB / 335.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.1375, allocations: 8 kB / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.1377, allocations: 149.6 kB / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.1377, allocations: 20.44 kB / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.342e-05/0.1377, allocations: 25.7 kB / 335.4 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.1378, allocations: 7.938 kB / 335.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1378, allocations: 0 / 335.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1378, allocations: 7.938 kB / 335.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.138, allocations: 245.4 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.138, allocations: 4 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.675e-05/0.1381, allocations: 4 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1381, allocations: 4 kB / 335.7 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1381, allocations: 4 kB / 335.7 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-05/0.1381, allocations: 8 kB / 335.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1381, allocations: 3.938 kB / 335.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002899/0.1384, allocations: 174.5 kB / 335.9 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-05/0.1385, allocations: 100.8 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.1386, allocations: 4 kB / 336 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.431e-05/0.1387, allocations: 19.98 kB / 336 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.1387, allocations: 15.97 kB / 336 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.1388, allocations: 8 kB / 336 MB, free: 11.94 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.139, allocations: 204.5 kB / 336.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.139, allocations: 0 / 336.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002706/0.1393, allocations: 36 kB / 336.2 MB, free: 11.7 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001474/0.1408, allocations: 1.034 MB / 337.3 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002887/0.1411, allocations: 99.83 kB / 337.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1411, allocations: 0 / 337.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.1412, allocations: 51.92 kB / 337.4 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.1416, allocations: 48.38 kB / 337.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.1435, allocations: 1.138 MB / 338.6 MB, free: 9.246 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.1438, allocations: 0.7283 MB / 339.3 MB, free: 8.492 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.369e-05/0.1439, allocations: 21.53 kB / 339.4 MB, free: 8.473 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.498e-05/0.144, allocations: 59.42 kB / 339.4 MB, free: 8.414 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.144, allocations: 0 / 339.4 MB, free: 8.414 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.162, allocations: 4.478 MB / 343.9 MB, free: 3.926 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/0.1623, allocations: 215.5 kB / 344.1 MB, free: 3.688 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.225, allocations: 3.938 kB / 344.1 MB, free: 3.684 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat