Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001739/0.001739, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.565/1.565, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.302/0.302, allocations: 45.92 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002816, allocations: 8 kB / 418 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1397, allocations: 63.46 MB / 481.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001083/0.1408, allocations: 0.5256 MB / 482 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001937/0.1411, allocations: 43.91 kB / 482.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.284e-05/0.1411, allocations: 3.938 kB / 482.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.804e-05/0.1412, allocations: 7.984 kB / 482.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.66e-05/0.1412, allocations: 7.938 kB / 482.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001146/0.1413, allocations: 11.98 kB / 482.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.1415, allocations: 27.91 kB / 482.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.992e-05/0.1416, allocations: 12 kB / 482.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.555e-05/0.1416, allocations: 11.92 kB / 482.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.388e-05/0.1417, allocations: 7.938 kB / 482.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.1417, allocations: 4 kB / 482.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.806e-06/0.1417, allocations: 0 / 482.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.106e-05/0.1417, allocations: 4 kB / 482.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.532e-05/0.1418, allocations: 33.64 kB / 482.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.314e-05/0.1418, allocations: 27.94 kB / 482.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.1418, allocations: 0 / 482.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1418, allocations: 0 / 482.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.1419, allocations: 3.938 kB / 482.2 MB, free: 4.574 MB / 350.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.0004211/0.1423, allocations: 339.5 kB / 482.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1423, allocations: 12.03 kB / 482.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.1424, allocations: 30.56 kB / 482.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.1424, allocations: 15.91 kB / 482.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.1426, allocations: 171 kB / 482.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1426, allocations: 7.938 kB / 482.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.1427, allocations: 4 kB / 482.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.1428, allocations: 53.67 kB / 482.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1428, allocations: 4 kB / 482.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.1428, allocations: 3.984 kB / 482.9 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1428, allocations: 0 / 482.9 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.091e-05/0.1429, allocations: 12 kB / 482.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.1434, allocations: 304.6 kB / 483.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.809e-05/0.1435, allocations: 18.58 kB / 483.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.1435, allocations: 4.062 kB / 483.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000104/0.1436, allocations: 47.41 kB / 483.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 3.016e-06/0.1436, allocations: 7.984 kB / 483.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001557/0.1438, allocations: 65.48 kB / 483.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.1438, allocations: 51.41 kB / 483.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.354e-05/0.1439, allocations: 118 kB / 483.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.1439, allocations: 25.7 kB / 483.5 MB, free: 3.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.35e-05/0.144, allocations: 92.12 kB / 483.6 MB, free: 3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.14e-05/0.144, allocations: 3.906 kB / 483.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-06/0.144, allocations: 0 / 483.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1441, allocations: 318.8 kB / 483.9 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.592e-05/0.1442, allocations: 7.984 kB / 483.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.587e-05/0.1442, allocations: 21.72 kB / 483.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.117e-05/0.1442, allocations: 11.94 kB / 484 MB, free: 2.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1442, allocations: 0 / 484 MB, free: 2.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.44e-05/0.1443, allocations: 49.59 kB / 484 MB, free: 2.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.1443, allocations: 8 kB / 484 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1443, allocations: 0 / 484 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1444, allocations: 0 / 484 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.477e-05/0.1444, allocations: 11.98 kB / 484 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1444, allocations: 7.875 kB / 484 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.926e-05/0.1444, allocations: 4 kB / 484 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.1445, allocations: 3.984 kB / 484 MB, free: 2.539 MB / 350.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 8.007e-05/0.1445, allocations: 113.8 kB / 484.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.828e-06/0.1446, allocations: 3.906 kB / 484.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.1446, allocations: 11.91 kB / 484.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1446, allocations: 0 / 484.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.1446, allocations: 7.953 kB / 484.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1446, allocations: 0 / 484.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.1449, allocations: 302.5 kB / 484.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1449, allocations: 0 / 484.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.02e-05/0.145, allocations: 4 kB / 484.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.145, allocations: 0 / 484.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.145, allocations: 3.953 kB / 484.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.145, allocations: 0 / 484.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.145, allocations: 0 / 484.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.1452, allocations: 151.5 kB / 484.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.359e-05/0.1452, allocations: 85.05 kB / 484.7 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.1452, allocations: 0 / 484.7 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.1453, allocations: 3.953 kB / 484.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.1453, allocations: 4.422 kB / 484.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.1453, allocations: 0 / 484.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.923e-05/0.1454, allocations: 103.5 kB / 484.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1454, allocations: 0 / 484.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002093/0.1456, allocations: 8.062 kB / 484.8 MB, free: 1.652 MB / 350.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.0004367/0.1461, allocations: 0.6856 MB / 485.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.414e-05/0.1462, allocations: 15.94 kB / 485.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1462, allocations: 0 / 485.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.445e-05/0.1462, allocations: 16.11 kB / 485.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.1464, allocations: 15.89 kB / 485.6 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007489/0.1472, allocations: 0.5825 MB / 486.1 MB, free: 264 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.1475, allocations: 0.6848 MB / 486.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.24e-05/0.1475, allocations: 4 kB / 486.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.884e-05/0.1476, allocations: 19.42 kB / 486.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1476, allocations: 0 / 486.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01107/0.1586, allocations: 1.293 MB / 488.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003072/0.159, allocations: 178.6 kB / 488.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/1.9, allocations: 4 kB / 488.3 MB, free: 14.11 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat