Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",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.000863/0.0008674, 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.001282/0.001282, allocations: 173.5 kB / 16.58 MB, free: 6.84 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.57/1.57, allocations: 205.4 MB / 222.8 MB, free: 5.875 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.3699/0.3699, allocations: 43.54 MB / 314.6 MB, free: 8.887 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.0005973/0.0005978, allocations: 12 kB / 384 MB, free: 8.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.132, allocations: 58.85 MB / 442.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001165/0.1332, allocations: 0.5381 MB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002219/0.1335, allocations: 43.91 kB / 443.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.321e-05/0.1336, allocations: 4 kB / 443.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.1337, allocations: 7.922 kB / 443.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.828e-05/0.1337, allocations: 3.938 kB / 443.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001181/0.1338, allocations: 11.98 kB / 443.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.699e-05/0.1339, allocations: 31.92 kB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.727e-05/0.134, allocations: 12.27 kB / 443.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.411e-05/0.1341, allocations: 19.86 kB / 443.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.123e-05/0.1341, allocations: 3.938 kB / 443.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.1341, allocations: 8 kB / 443.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-06/0.1342, allocations: 0 / 443.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.1342, allocations: 3.984 kB / 443.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.547e-05/0.1342, allocations: 37.64 kB / 443.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.129e-05/0.1343, allocations: 23.84 kB / 443.6 MB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1343, allocations: 0 / 443.6 MB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1343, allocations: 0 / 443.6 MB, free: 12.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1343, allocations: 0 / 443.6 MB, free: 12.48 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004123/0.1347, allocations: 343.2 kB / 443.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.1348, allocations: 8.031 kB / 444 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.113e-05/0.1348, allocations: 38.56 kB / 444 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.986e-05/0.1349, allocations: 7.953 kB / 444 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002166/0.1351, allocations: 186.9 kB / 444.2 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.1351, allocations: 7.938 kB / 444.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.912e-05/0.1351, allocations: 0 / 444.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.1353, allocations: 49.69 kB / 444.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1353, allocations: 0 / 444.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.1353, allocations: 0 / 444.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.1353, allocations: 4 kB / 444.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.427e-05/0.1354, allocations: 12 kB / 444.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005156/0.1359, allocations: 292.7 kB / 444.5 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.428e-05/0.136, allocations: 26.58 kB / 444.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.025e-05/0.136, allocations: 8.844 kB / 444.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-06/0.136, allocations: 0 / 444.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.1361, allocations: 55.44 kB / 444.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 2.915e-06/0.1362, allocations: 0 / 444.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001456/0.1363, allocations: 57.75 kB / 444.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.1364, allocations: 59.39 kB / 444.7 MB, free: 11.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.1366, allocations: 114 kB / 444.9 MB, free: 11.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.1366, allocations: 25.7 kB / 444.9 MB, free: 11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.376e-05/0.1366, allocations: 92.42 kB / 445 MB, free: 10.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.1367, allocations: 3.906 kB / 445 MB, free: 10.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-06/0.1367, allocations: 4 kB / 445 MB, free: 10.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1368, allocations: 318.8 kB / 445.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.5e-05/0.1368, allocations: 7.938 kB / 445.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.354e-05/0.1369, allocations: 25.66 kB / 445.3 MB, free: 10.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.324e-05/0.1369, allocations: 7.984 kB / 445.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1369, allocations: 4 kB / 445.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.062e-05/0.137, allocations: 45.7 kB / 445.4 MB, free: 10.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.137, allocations: 19.92 kB / 445.4 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.137, allocations: 4 kB / 445.4 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1371, allocations: 3.984 kB / 445.4 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.329e-05/0.1371, allocations: 7.938 kB / 445.4 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1371, allocations: 0 / 445.4 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.739e-05/0.1371, allocations: 11.84 kB / 445.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-06/0.1372, allocations: 0 / 445.4 MB, free: 10.43 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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001204/0.1373, allocations: 117.8 kB / 445.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.1373, allocations: 0 / 445.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.242e-05/0.1373, allocations: 15.86 kB / 445.6 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1373, allocations: 3.984 kB / 445.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1374, allocations: 0 / 445.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1374, allocations: 0 / 445.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000301/0.1377, allocations: 302.6 kB / 445.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1377, allocations: 0 / 445.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.514e-05/0.1377, allocations: 7.938 kB / 445.9 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1377, allocations: 4 kB / 445.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.1377, allocations: 0 / 445.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1377, allocations: 4 kB / 445.9 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1378, allocations: 0 / 445.9 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/0.1379, allocations: 147.5 kB / 446 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.138, allocations: 81.02 kB / 446.1 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.138, allocations: 7.984 kB / 446.1 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.559e-05/0.1381, allocations: 3.984 kB / 446.1 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.1381, allocations: 3.938 kB / 446.1 MB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.1381, allocations: 8.062 kB / 446.1 MB, free: 9.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.231e-05/0.1382, allocations: 95.27 kB / 446.2 MB, free: 9.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1382, allocations: 0 / 446.2 MB, free: 9.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002135/0.1384, allocations: 4.281 kB / 446.2 MB, free: 9.535 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004287/0.1388, allocations: 0.6776 MB / 446.9 MB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.853e-05/0.139, allocations: 27.97 kB / 446.9 MB, free: 8.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.139, allocations: 0 / 446.9 MB, free: 8.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.139, allocations: 12 kB / 446.9 MB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.1393, allocations: 11.94 kB / 446.9 MB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006788/0.1399, allocations: 453.2 kB / 447.4 MB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.1404, allocations: 0.6848 MB / 448.1 MB, free: 7.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.27e-05/0.1405, allocations: 8.125 kB / 448.1 MB, free: 7.566 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.153e-05/0.1405, allocations: 19.42 kB / 448.1 MB, free: 7.547 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1405, allocations: 0 / 448.1 MB, free: 7.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01167/0.1522, allocations: 1.319 MB / 449.4 MB, free: 6.258 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.1524, allocations: 180.1 kB / 449.6 MB, free: 6.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/1.846, allocations: 0 / 449.6 MB, free: 6.02 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat