Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001576/0.001576, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.57/2.57, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001246/0.001246, allocations: 90.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2998/0.2998, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006569/0.000657, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1343, allocations: 58.86 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001336/0.1357, allocations: 0.5191 MB / 490.8 MB, free: 8.719 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002292/0.1359, allocations: 43.84 kB / 490.9 MB, free: 8.676 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.066e-05/0.136, allocations: 3.938 kB / 490.9 MB, free: 8.672 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 2.139e-05/0.1361, allocations: 11.92 kB / 490.9 MB, free: 8.66 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 7.259e-05/0.1361, allocations: 0 / 490.9 MB, free: 8.66 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001213/0.1363, allocations: 19.97 kB / 490.9 MB, free: 8.641 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.1364, allocations: 27.92 kB / 490.9 MB, free: 8.613 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.592e-05/0.1365, allocations: 7.984 kB / 490.9 MB, free: 8.605 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.989e-05/0.1366, allocations: 15.92 kB / 491 MB, free: 8.59 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.417e-05/0.1366, allocations: 7.938 kB / 491 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.1367, allocations: 0 / 491 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.101e-05/0.1367, allocations: 0 / 491 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.902e-05/0.1367, allocations: 12 kB / 491 MB, free: 8.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.832e-05/0.1368, allocations: 29.64 kB / 491 MB, free: 8.535 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 7.18e-05/0.1368, allocations: 19.95 kB / 491 MB, free: 8.516 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1368, allocations: 4 kB / 491 MB, free: 8.512 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1369, allocations: 0 / 491 MB, free: 8.512 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.1369, allocations: 0 / 491 MB, free: 8.512 MB / 330.7 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.0004644/0.1373, allocations: 343.5 kB / 491.4 MB, free: 8.129 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1374, allocations: 8.031 kB / 491.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.342e-05/0.1375, allocations: 30.56 kB / 491.4 MB, free: 8.082 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.904e-05/0.1375, allocations: 8 kB / 491.4 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.1377, allocations: 186.8 kB / 491.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.1378, allocations: 4 kB / 491.6 MB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.1378, allocations: 7.938 kB / 491.6 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.1379, allocations: 49.67 kB / 491.7 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.138, allocations: 0 / 491.7 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.138, allocations: 7.984 kB / 491.7 MB, free: 7.777 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.138, allocations: 4 kB / 491.7 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.569e-05/0.1381, allocations: 8 kB / 491.7 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006025/0.1387, allocations: 292.7 kB / 492 MB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.43e-05/0.1388, allocations: 26.58 kB / 492 MB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-06/0.1388, allocations: 3.938 kB / 492 MB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000128/0.1389, allocations: 47.47 kB / 492 MB, free: 7.332 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 4.538e-06/0.1389, allocations: 8 kB / 492 MB, free: 7.324 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001668/0.1391, allocations: 57.48 kB / 492.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1392, allocations: 51.41 kB / 492.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.1393, allocations: 118 kB / 492.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.1393, allocations: 25.7 kB / 492.3 MB, free: 7.039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.1394, allocations: 162.5 kB / 492.5 MB, free: 6.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.1394, allocations: 7.969 kB / 492.5 MB, free: 6.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.1395, allocations: 4 kB / 492.5 MB, free: 6.867 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1396, allocations: 310.8 kB / 492.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.136e-05/0.1396, allocations: 8 kB / 492.8 MB, free: 6.547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.376e-05/0.1397, allocations: 29.88 kB / 492.8 MB, free: 6.512 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.274e-05/0.1397, allocations: 8 kB / 492.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1397, allocations: 7.938 kB / 492.8 MB, free: 6.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001073/0.1399, allocations: 41.7 kB / 492.9 MB, free: 6.449 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1399, allocations: 10.64 kB / 492.9 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1399, allocations: 0 / 492.9 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.14, allocations: 4 kB / 492.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.851e-05/0.14, allocations: 11.98 kB / 492.9 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.14, allocations: 3.938 kB / 492.9 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.501e-05/0.1401, allocations: 0 / 492.9 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.1401, allocations: 8 kB / 492.9 MB, free: 6.414 MB / 330.7 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 9.878e-05/0.1402, allocations: 113.8 kB / 493 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.766e-05/0.1403, allocations: 7.906 kB / 493 MB, free: 6.285 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.1403, allocations: 11.89 kB / 493 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1403, allocations: 4 kB / 493 MB, free: 6.266 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.1403, allocations: 7.953 kB / 493 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1403, allocations: 0 / 493 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003931/0.1407, allocations: 294.6 kB / 493.3 MB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1408, allocations: 7.922 kB / 493.3 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.531e-05/0.1408, allocations: 0 / 493.3 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1408, allocations: 0 / 493.3 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1408, allocations: 3.953 kB / 493.3 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.233e-06/0.1409, allocations: 4 kB / 493.3 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1409, allocations: 3.938 kB / 493.3 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/0.1411, allocations: 151.5 kB / 493.5 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-05/0.1411, allocations: 77.11 kB / 493.6 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.1412, allocations: 0 / 493.6 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.408e-05/0.1413, allocations: 11.97 kB / 493.6 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.1413, allocations: 0 / 493.6 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.1413, allocations: 0 / 493.6 MB, free: 5.625 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.335e-05/0.1414, allocations: 107.5 kB / 493.7 MB, free: 5.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1414, allocations: 64 / 493.7 MB, free: 5.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002979/0.1417, allocations: 11.91 kB / 493.7 MB, free: 5.508 MB / 330.7 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.00049/0.1422, allocations: 0.6657 MB / 494.4 MB, free: 4.812 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001022/0.1423, allocations: 24.2 kB / 494.4 MB, free: 4.789 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1424, allocations: 0 / 494.4 MB, free: 4.789 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.286e-05/0.1424, allocations: 12.22 kB / 494.4 MB, free: 4.777 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.1427, allocations: 19.64 kB / 494.4 MB, free: 4.762 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009597/0.1436, allocations: 0.6189 MB / 495 MB, free: 4.086 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.144, allocations: 0.6809 MB / 495.7 MB, free: 3.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.1441, allocations: 19.42 kB / 495.7 MB, free: 3.359 MB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1441, allocations: 0 / 495.7 MB, free: 3.359 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.539/2.683, allocations: 1.015 MB / 496.8 MB, free: 2.344 MB / 330.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat