Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.05268/0.05269, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.06899/0.06899, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.768/3.768, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2708/0.2708, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002092, allocations: 79.88 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4659/0.468, allocations: 62.44 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002483/0.4705, allocations: 0.8113 MB / 0.5314 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002237/0.4707, allocations: 47.88 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.747e-05/0.4708, allocations: 1.594 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.172e-05/0.4709, allocations: 7.938 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.137e-05/0.471, allocations: 3.938 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001081/0.4711, allocations: 20.52 kB / 0.5315 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.826e-05/0.4712, allocations: 41.91 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.259e-05/0.4713, allocations: 16.45 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.243e-05/0.4713, allocations: 15.08 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.064e-05/0.4713, allocations: 14.45 kB / 0.5316 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.4714, allocations: 4.031 kB / 0.5316 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.007e-05/0.4714, allocations: 2.438 kB / 0.5316 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.4714, allocations: 13.3 kB / 0.5316 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.187e-05/0.4715, allocations: 19.22 kB / 0.5316 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.4716, allocations: 42.25 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4716, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4716, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.4716, allocations: 1.562 kB / 0.5316 GB, free: 12.61 MB / 398.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.0004438/0.4721, allocations: 356 kB / 0.532 GB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.4721, allocations: 8.906 kB / 0.532 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.769e-05/0.4721, allocations: 36.41 kB / 0.532 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.377e-05/0.4722, allocations: 4 kB / 0.532 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.4724, allocations: 187 kB / 0.5322 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.4725, allocations: 5.812 kB / 0.5322 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/0.4725, allocations: 2.75 kB / 0.5322 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.4726, allocations: 50.62 kB / 0.5323 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.4726, allocations: 3.938 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.4726, allocations: 3.984 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.4726, allocations: 1.719 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.295e-05/0.4727, allocations: 15.25 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.4732, allocations: 294 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.65e-05/0.4733, allocations: 27.95 kB / 0.5326 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.906e-05/0.4733, allocations: 8.422 kB / 0.5326 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.542e-06/0.4733, allocations: 0 / 0.5326 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.331e-05/0.4734, allocations: 50.56 kB / 0.5326 GB, free: 11.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.723e-06/0.4734, allocations: 4 kB / 0.5326 GB, free: 11.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001477/0.4736, allocations: 55.11 kB / 0.5327 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.4736, allocations: 51.41 kB / 0.5327 GB, free: 11.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.4737, allocations: 115 kB / 0.5329 GB, free: 11.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.4738, allocations: 31 kB / 0.5329 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.4738, allocations: 94.5 kB / 0.533 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.378e-05/0.4739, allocations: 9.328 kB / 0.533 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.4739, allocations: 17.84 kB / 0.533 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.474, allocations: 325.3 kB / 0.5333 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.948e-05/0.4741, allocations: 6.688 kB / 0.5333 GB, free: 10.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.445e-05/0.4741, allocations: 13.78 kB / 0.5333 GB, free: 10.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.056e-05/0.4741, allocations: 38.08 kB / 0.5334 GB, free: 10.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4742, allocations: 0 / 0.5334 GB, free: 10.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.236e-05/0.4742, allocations: 45.2 kB / 0.5334 GB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.4743, allocations: 9.719 kB / 0.5334 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.4743, allocations: 9.641 kB / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.4743, allocations: 0 / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.062e-05/0.4743, allocations: 3.328 kB / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.4743, allocations: 5.625 kB / 0.5334 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.348e-05/0.4744, allocations: 13.47 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.169e-06/0.4744, allocations: 1.719 kB / 0.5335 GB, free: 10.68 MB / 398.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 (greaterEqualThreshold.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.417e-05/0.4745, allocations: 111.6 kB / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.4745, allocations: 3.781 kB / 0.5336 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.4745, allocations: 15.89 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4745, allocations: 2.031 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.4745, allocations: 0 / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4746, allocations: 3.938 kB / 0.5336 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003131/0.4749, allocations: 297.5 kB / 0.5339 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4749, allocations: 0 / 0.5339 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.3e-05/0.4749, allocations: 7.266 kB / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.4749, allocations: 0 / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.4749, allocations: 3.938 kB / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4749, allocations: 0 / 0.5339 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.475, allocations: 8 kB / 0.5339 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.4751, allocations: 144.2 kB / 0.534 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.941e-05/0.4752, allocations: 84.56 kB / 0.5341 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.4752, allocations: 3.938 kB / 0.5341 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.529e-05/0.4752, allocations: 3.984 kB / 0.5341 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/0.4753, allocations: 3.594 kB / 0.5341 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.4753, allocations: 0 / 0.5341 GB, free: 9.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.949e-05/0.4754, allocations: 102.9 kB / 0.5342 GB, free: 9.863 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4754, allocations: 3.406 kB / 0.5342 GB, free: 9.863 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.4756, allocations: 7.125 kB / 0.5342 GB, free: 9.859 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004509/0.476, allocations: 0.6701 MB / 0.5349 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.127e-05/0.4761, allocations: 26.86 kB / 0.5349 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4761, allocations: 5.781 kB / 0.5349 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.196e-05/0.4762, allocations: 9.5 kB / 0.5349 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.4764, allocations: 15.98 kB / 0.5349 GB, free: 9.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.4776, allocations: 1.274 MB / 0.5362 GB, free: 7.906 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003224/0.478, allocations: 0.6859 MB / 0.5368 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.066e-05/0.478, allocations: 2.719 kB / 0.5368 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.478, allocations: 13.94 kB / 0.5369 GB, free: 7.191 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.478, allocations: 4 kB / 0.5369 GB, free: 7.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.5021, allocations: 1.554 MB / 0.5384 GB, free: 6.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.956/8.458, allocations: 18.88 kB / 0.5384 GB, free: 6.316 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1)