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/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.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/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 198 kB / 14.17 MB, free: 1.148 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008795/0.0008795, allocations: 96.45 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1831/0.1831, allocations: 45.14 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.251e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 63.24 MB / 0.5114 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.463, allocations: 86.93 MB / 0.5963 GB, free: 6.883 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.4632, allocations: 60.72 kB / 0.5964 GB, free: 6.852 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003561/0.4668, allocations: 1.003 MB / 0.5974 GB, free: 5.973 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4668, allocations: 0 / 0.5974 GB, free: 5.973 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.4668, allocations: 8 kB / 0.5974 GB, free: 5.965 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003726/0.4672, allocations: 336.1 kB / 0.5977 GB, free: 5.598 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.4673, allocations: 11.97 kB / 0.5977 GB, free: 5.586 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.344e-05/0.4674, allocations: 30.56 kB / 0.5977 GB, free: 5.547 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.4674, allocations: 8.531 kB / 0.5977 GB, free: 5.539 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.4676, allocations: 182.5 kB / 0.5979 GB, free: 5.324 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.665e-06/0.4677, allocations: 0 / 0.5979 GB, free: 5.324 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.4677, allocations: 7.188 kB / 0.5979 GB, free: 5.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000141/0.4679, allocations: 56.23 kB / 0.598 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.4679, allocations: 0 / 0.598 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.4679, allocations: 0 / 0.598 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.4679, allocations: 0 / 0.598 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.726e-05/0.468, allocations: 11.31 kB / 0.598 GB, free: 5.258 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006371/0.4686, allocations: 293.4 kB / 0.5983 GB, free: 4.938 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.614e-05/0.4687, allocations: 32.33 kB / 0.5983 GB, free: 4.902 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.856e-05/0.4688, allocations: 4.859 kB / 0.5983 GB, free: 4.895 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.4688, allocations: 0 / 0.5983 GB, free: 4.895 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001123/0.4689, allocations: 58.16 kB / 0.5984 GB, free: 4.832 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 2.094e-06/0.4689, allocations: 0 / 0.5984 GB, free: 4.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001626/0.4691, allocations: 45.56 kB / 0.5984 GB, free: 4.781 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.4692, allocations: 58.2 kB / 0.5985 GB, free: 4.715 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.4693, allocations: 107.6 kB / 0.5986 GB, free: 4.605 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.4693, allocations: 25.7 kB / 0.5986 GB, free: 4.574 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.4694, allocations: 91.69 kB / 0.5987 GB, free: 4.484 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.4694, allocations: 7.844 kB / 0.5987 GB, free: 4.477 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-06/0.4695, allocations: 3.625 kB / 0.5987 GB, free: 4.477 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4696, allocations: 314.8 kB / 0.599 GB, free: 4.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.69e-05/0.4696, allocations: 11.56 kB / 0.599 GB, free: 4.152 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.283e-05/0.4697, allocations: 21.41 kB / 0.599 GB, free: 4.129 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.731e-05/0.4697, allocations: 12.06 kB / 0.599 GB, free: 4.117 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4698, allocations: 0 / 0.599 GB, free: 4.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00013/0.4699, allocations: 61.2 kB / 0.5991 GB, free: 4.055 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4699, allocations: 4 kB / 0.5991 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.4699, allocations: 0 / 0.5991 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.47, allocations: 4 kB / 0.5991 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.819e-05/0.47, allocations: 3.953 kB / 0.5991 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.4701, allocations: 4 kB / 0.5991 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.542e-05/0.4701, allocations: 7.938 kB / 0.5991 GB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.4701, allocations: 4 kB / 0.5991 GB, free: 4.031 MB / 394.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 () * 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.351e-05/0.4702, allocations: 104.9 kB / 0.5992 GB, free: 3.922 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.937e-05/0.4703, allocations: 7.906 kB / 0.5992 GB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.4703, allocations: 11.52 kB / 0.5992 GB, free: 3.895 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.4703, allocations: 0 / 0.5992 GB, free: 3.895 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.4703, allocations: 3.953 kB / 0.5992 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4704, allocations: 0 / 0.5992 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.4708, allocations: 305.6 kB / 0.5995 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.4708, allocations: 3.984 kB / 0.5995 GB, free: 3.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.835e-05/0.4708, allocations: 4 kB / 0.5995 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.4709, allocations: 0 / 0.5995 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.4709, allocations: 3.953 kB / 0.5995 GB, free: 3.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4709, allocations: 0 / 0.5995 GB, free: 3.535 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4709, allocations: 0 / 0.5995 GB, free: 3.535 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.4711, allocations: 151 kB / 0.5997 GB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.141e-05/0.4712, allocations: 85.08 kB / 0.5998 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.4712, allocations: 0 / 0.5998 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.972e-05/0.4713, allocations: 11.33 kB / 0.5998 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.472e-05/0.4713, allocations: 3.984 kB / 0.5998 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.4713, allocations: 0 / 0.5998 GB, free: 3.266 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.909e-05/0.4714, allocations: 90.91 kB / 0.5999 GB, free: 3.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4714, allocations: 0 / 0.5999 GB, free: 3.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003748/0.4718, allocations: 4.281 kB / 0.5999 GB, free: 3.176 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete 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.0004734/0.4723, allocations: 0.6853 MB / 0.6005 GB, free: 2.477 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.256e-05/0.4724, allocations: 23.5 kB / 0.6006 GB, free: 2.457 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4724, allocations: 0 / 0.6006 GB, free: 2.457 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.297e-05/0.4724, allocations: 4.281 kB / 0.6006 GB, free: 2.453 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.4727, allocations: 15.92 kB / 0.6006 GB, free: 2.441 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005183/0.4733, allocations: 131.7 kB / 0.6007 GB, free: 2.285 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.4736, allocations: 0.6926 MB / 0.6014 GB, free: 1.566 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.639e-05/0.4736, allocations: 3.984 kB / 0.6014 GB, free: 1.562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.781e-05/0.4736, allocations: 16.31 kB / 0.6014 GB, free: 1.551 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4737, allocations: 0 / 0.6014 GB, free: 1.551 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01523/0.4889, allocations: 1.289 MB / 0.6027 GB, free: 388 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002737/0.4892, allocations: 154.1 kB / 0.6028 GB, free: 160 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.422/1.911, allocations: 4 kB / 0.6028 GB, free: 156 kB / 394.7 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