Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001073, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009486/0.0009489, allocations: 91.94 kB / 292.1 MB, free: 6.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1979/0.1979, allocations: 45.16 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.419e-05/3.443e-05, allocations: 4 kB / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 63.24 MB / 0.5114 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3747/0.4765, allocations: 88.11 MB / 0.5975 GB, free: 5.707 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001794/0.4767, allocations: 64.34 kB / 0.5976 GB, free: 5.676 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004894/0.4816, allocations: 1.755 MB / 0.5993 GB, free: 4.172 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.4817, allocations: 0 / 0.5993 GB, free: 4.172 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.4817, allocations: 0 / 0.5993 GB, free: 4.172 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004032/0.4821, allocations: 377.4 kB / 0.5996 GB, free: 3.766 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.4822, allocations: 15.97 kB / 0.5996 GB, free: 3.75 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.387e-05/0.4822, allocations: 34.38 kB / 0.5997 GB, free: 3.711 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.4822, allocations: 8.531 kB / 0.5997 GB, free: 3.703 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.4824, allocations: 194.2 kB / 0.5999 GB, free: 3.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.4825, allocations: 6.438 kB / 0.5999 GB, free: 3.477 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.4825, allocations: 6.062 kB / 0.5999 GB, free: 3.473 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/0.4826, allocations: 76.44 kB / 0.6 GB, free: 3.406 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.4826, allocations: 0 / 0.6 GB, free: 3.406 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.4827, allocations: 3.125 kB / 0.6 GB, free: 3.406 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.4827, allocations: 0 / 0.6 GB, free: 3.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.385e-05/0.4828, allocations: 40.8 kB / 0.6 GB, free: 3.375 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.4833, allocations: 350.1 kB / 0.6003 GB, free: 3.012 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.4835, allocations: 52.38 kB / 0.6004 GB, free: 2.961 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.937e-05/0.4835, allocations: 16.02 kB / 0.6004 GB, free: 2.945 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.4835, allocations: 6.516 kB / 0.6004 GB, free: 2.941 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001228/0.4836, allocations: 70.56 kB / 0.6005 GB, free: 2.867 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.492e-06/0.4837, allocations: 0 / 0.6005 GB, free: 2.867 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001692/0.4838, allocations: 76.7 kB / 0.6005 GB, free: 2.793 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.4839, allocations: 51.41 kB / 0.6006 GB, free: 2.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.484, allocations: 130.5 kB / 0.6007 GB, free: 2.605 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.484, allocations: 29.02 kB / 0.6007 GB, free: 2.574 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.4841, allocations: 95.38 kB / 0.6008 GB, free: 2.484 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.4841, allocations: 27.55 kB / 0.6009 GB, free: 2.461 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-06/0.4841, allocations: 4 kB / 0.6009 GB, free: 2.457 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.73e-05/0.4842, allocations: 318 kB / 0.6012 GB, free: 2.141 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.4842, allocations: 19.59 kB / 0.6012 GB, free: 2.129 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.267e-05/0.4843, allocations: 32.77 kB / 0.6012 GB, free: 2.094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.533e-05/0.4843, allocations: 22.48 kB / 0.6012 GB, free: 2.074 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4843, allocations: 0 / 0.6012 GB, free: 2.074 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001316/0.4845, allocations: 94.95 kB / 0.6013 GB, free: 1.988 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.4845, allocations: 7.953 kB / 0.6013 GB, free: 1.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-06/0.4845, allocations: 0 / 0.6013 GB, free: 1.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4845, allocations: 4 kB / 0.6013 GB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.861e-05/0.4846, allocations: 4 kB / 0.6013 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.4846, allocations: 4 kB / 0.6014 GB, free: 1.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.618e-05/0.4847, allocations: 11.42 kB / 0.6014 GB, free: 1.961 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.4847, allocations: 4 kB / 0.6014 GB, free: 1.957 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete 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 6.717e-05/0.4848, allocations: 116 kB / 0.6015 GB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.4848, allocations: 7.906 kB / 0.6015 GB, free: 1.836 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.4848, allocations: 15.7 kB / 0.6015 GB, free: 1.816 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4848, allocations: 0 / 0.6015 GB, free: 1.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4848, allocations: 4 kB / 0.6015 GB, free: 1.812 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.4849, allocations: 3.984 kB / 0.6015 GB, free: 1.809 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003046/0.4852, allocations: 335.4 kB / 0.6018 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.4852, allocations: 3.953 kB / 0.6018 GB, free: 1.449 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.732e-05/0.4852, allocations: 15.98 kB / 0.6018 GB, free: 1.434 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.4852, allocations: 7.984 kB / 0.6019 GB, free: 1.426 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.4853, allocations: 0 / 0.6019 GB, free: 1.426 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4853, allocations: 3.938 kB / 0.6019 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4853, allocations: 0 / 0.6019 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.4855, allocations: 184 kB / 0.602 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.4855, allocations: 92.77 kB / 0.6021 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.4855, allocations: 4.031 kB / 0.6021 GB, free: 1.133 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.905e-05/0.4857, allocations: 8.062 kB / 0.6021 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.4857, allocations: 7.984 kB / 0.6021 GB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.4857, allocations: 7.984 kB / 0.6021 GB, free: 1.109 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.826e-05/0.4858, allocations: 106.6 kB / 0.6022 GB, free: 1.016 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4858, allocations: 0 / 0.6022 GB, free: 1.016 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002459/0.486, allocations: 19.62 kB / 0.6023 GB, free: 1 MB / 394.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: 5 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * 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.0004376/0.4865, allocations: 0.7256 MB / 0.603 GB, free: 276 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.4866, allocations: 50.17 kB / 0.603 GB, free: 236 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4866, allocations: 0 / 0.603 GB, free: 236 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.684e-05/0.4867, allocations: 27.11 kB / 0.603 GB, free: 216 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.4869, allocations: 11.7 kB / 0.6031 GB, free: 208 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005508/0.4875, allocations: 188.8 kB / 0.6032 GB, free: 0 / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.4877, allocations: 0.7082 MB / 0.6039 GB, free: 15.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.657e-05/0.4878, allocations: 4.438 kB / 0.6039 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.575e-05/0.4878, allocations: 25.92 kB / 0.604 GB, free: 15.25 MB / 410.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4878, allocations: 0 / 0.604 GB, free: 15.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01234/0.5002, allocations: 1.894 MB / 0.6058 GB, free: 13.46 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002323/0.5005, allocations: 155 kB / 0.606 GB, free: 13.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.388/1.888, allocations: 0 / 0.606 GB, free: 13.23 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat