Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",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.0008028/0.0008028, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008392/0.0008391, allocations: 175.2 kB / 16.58 MB, free: 6.844 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.61/1.61, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3962/0.3962, allocations: 43.55 MB / 314.6 MB, free: 8.789 MB / 254.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.0005121/0.0005123, allocations: 12 kB / 384 MB, free: 7.941 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1155, allocations: 58.86 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001879/0.1174, allocations: 1.311 MB / 444.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1185, allocations: 0.5584 MB / 444.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.1187, allocations: 4 kB / 444.8 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.1188, allocations: 11.86 kB / 444.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.035e-05/0.1189, allocations: 7.938 kB / 444.8 MB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003631/0.1192, allocations: 79.89 kB / 444.8 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001501/0.1194, allocations: 99.69 kB / 444.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.1195, allocations: 32.17 kB / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.587e-05/0.1196, allocations: 35.84 kB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.838e-05/0.1197, allocations: 31.84 kB / 445 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.1197, allocations: 8 kB / 445.1 MB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.578e-05/0.1197, allocations: 4 kB / 445.1 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.1197, allocations: 11.92 kB / 445.1 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.225e-05/0.1198, allocations: 41.64 kB / 445.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.652e-05/0.1199, allocations: 55.88 kB / 445.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1199, allocations: 0 / 445.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1199, allocations: 0 / 445.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1199, allocations: 0 / 445.2 MB, free: 10.66 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006245/0.1205, allocations: 407 kB / 445.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.1206, allocations: 8.031 kB / 445.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.989e-05/0.1206, allocations: 38.56 kB / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.158e-05/0.1207, allocations: 15.86 kB / 445.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.1209, allocations: 198.8 kB / 445.8 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.121, allocations: 8 kB / 445.8 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.121, allocations: 4 kB / 445.8 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.1213, allocations: 109.6 kB / 445.9 MB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1213, allocations: 0 / 445.9 MB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.1213, allocations: 4 kB / 445.9 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.1213, allocations: 7.953 kB / 445.9 MB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.1215, allocations: 55.77 kB / 446 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006955/0.1222, allocations: 408.4 kB / 446.4 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.1226, allocations: 122.3 kB / 446.5 MB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.1227, allocations: 48.91 kB / 446.6 MB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.1227, allocations: 0 / 446.6 MB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.123, allocations: 107.4 kB / 446.7 MB, free: 8.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.123, allocations: 0 / 446.7 MB, free: 8.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004619/0.1235, allocations: 153.5 kB / 446.8 MB, free: 8.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.543e-05/0.1235, allocations: 55.34 kB / 446.9 MB, free: 8.754 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1237, allocations: 150.3 kB / 447 MB, free: 8.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1237, allocations: 29.7 kB / 447.1 MB, free: 8.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.1238, allocations: 100.3 kB / 447.1 MB, free: 8.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.1238, allocations: 11.81 kB / 447.2 MB, free: 8.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.857e-06/0.1238, allocations: 4 kB / 447.2 MB, free: 8.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1239, allocations: 326.8 kB / 447.5 MB, free: 8.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.1241, allocations: 39.97 kB / 447.5 MB, free: 8.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.1242, allocations: 57.69 kB / 447.6 MB, free: 8.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.1243, allocations: 31.98 kB / 447.6 MB, free: 7.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1243, allocations: 0 / 447.6 MB, free: 7.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002791/0.1246, allocations: 133.4 kB / 447.7 MB, free: 7.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1246, allocations: 4 kB / 447.7 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.1246, allocations: 3.938 kB / 447.7 MB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1247, allocations: 4 kB / 447.8 MB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1248, allocations: 19.98 kB / 447.8 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1248, allocations: 0 / 447.8 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.622e-05/0.1249, allocations: 28.09 kB / 447.8 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.824e-06/0.1249, allocations: 4.281 kB / 447.8 MB, free: 7.785 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001001/0.125, allocations: 129.8 kB / 447.9 MB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/0.125, allocations: 7.906 kB / 447.9 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.329e-05/0.1251, allocations: 12.66 kB / 447.9 MB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1251, allocations: 4 kB / 448 MB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1251, allocations: 4 kB / 448 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1251, allocations: 0 / 448 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005227/0.1256, allocations: 414.3 kB / 448.4 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1256, allocations: 0 / 448.4 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.067e-05/0.1257, allocations: 11.98 kB / 448.4 MB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.1257, allocations: 0 / 448.4 MB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.1257, allocations: 7.938 kB / 448.4 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1257, allocations: 0 / 448.4 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1258, allocations: 3.984 kB / 448.4 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004201/0.1262, allocations: 263.3 kB / 448.6 MB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.425e-05/0.1263, allocations: 85.05 kB / 448.7 MB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.1263, allocations: 3.984 kB / 448.7 MB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.1264, allocations: 23.98 kB / 448.8 MB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.1265, allocations: 15.97 kB / 448.8 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.473e-06/0.1265, allocations: 0 / 448.8 MB, free: 6.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.089e-05/0.1266, allocations: 112.6 kB / 448.9 MB, free: 6.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1266, allocations: 4.062 kB / 448.9 MB, free: 6.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.1269, allocations: 19.92 kB / 448.9 MB, free: 6.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007136/0.1276, allocations: 0.7948 MB / 449.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002688/0.1279, allocations: 88.02 kB / 449.8 MB, free: 5.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.1279, allocations: 0 / 449.8 MB, free: 5.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.128, allocations: 51.91 kB / 449.8 MB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.1283, allocations: 20.05 kB / 449.9 MB, free: 5.609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.1296, allocations: 0.708 MB / 450.6 MB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.1299, allocations: 0.7042 MB / 451.3 MB, free: 4.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.024e-05/0.13, allocations: 16.41 kB / 451.3 MB, free: 4.102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.616e-05/0.1301, allocations: 23.44 kB / 451.3 MB, free: 4.078 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1301, allocations: 3.938 kB / 451.3 MB, free: 4.074 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01292/0.143, allocations: 2.222 MB / 453.5 MB, free: 1.883 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.1432, allocations: 178.3 kB / 453.7 MB, free: 1.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/1.886, allocations: 3.938 kB / 453.7 MB, free: 1.637 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat