Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.05648/0.05648, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.06896/0.06896, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.766/3.766, allocations: 227.4 MB / 247 MB, free: 10.51 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.2745/0.2745, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002206/0.002206, allocations: 79.86 kB / 480.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4543/0.4565, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003151/0.4597, allocations: 1.647 MB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.4608, allocations: 0.5876 MB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.304e-05/0.4609, allocations: 5.469 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.461, allocations: 9.188 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.032e-05/0.4611, allocations: 12.8 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.4615, allocations: 91.92 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.4617, allocations: 108.5 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.4618, allocations: 41.25 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.099e-05/0.4619, allocations: 40.5 kB / 0.5331 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.654e-05/0.462, allocations: 40.28 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.462, allocations: 7.688 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.018e-05/0.4621, allocations: 8.906 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.408e-05/0.4621, allocations: 18.42 kB / 0.5331 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.158e-05/0.4622, allocations: 36.8 kB / 0.5332 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001674/0.4623, allocations: 99.03 kB / 0.5333 GB, free: 11.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.4623, allocations: 0 / 0.5333 GB, free: 11.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4623, allocations: 1.125 kB / 0.5333 GB, free: 11.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.4624, allocations: 0 / 0.5333 GB, free: 11.28 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006672/0.463, allocations: 423.9 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.4631, allocations: 9.969 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.389e-05/0.4631, allocations: 36.94 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.4632, allocations: 10.39 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.4635, allocations: 202 kB / 0.5339 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.4635, allocations: 11.94 kB / 0.5339 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.4635, allocations: 13.22 kB / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.4638, allocations: 100.2 kB / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.4638, allocations: 0 / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.4639, allocations: 1.312 kB / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4639, allocations: 1.938 kB / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.464, allocations: 58.67 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006852/0.4647, allocations: 391.2 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.4651, allocations: 100.3 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.4652, allocations: 38.75 kB / 0.5346 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.4652, allocations: 5.375 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.4655, allocations: 96.3 kB / 0.5347 GB, free: 9.949 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.4655, allocations: 0 / 0.5347 GB, free: 9.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004692/0.466, allocations: 147.6 kB / 0.5348 GB, free: 9.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.466, allocations: 52.78 kB / 0.5349 GB, free: 9.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.4662, allocations: 146.1 kB / 0.535 GB, free: 9.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.4662, allocations: 27.08 kB / 0.5351 GB, free: 9.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.358e-05/0.4663, allocations: 104.2 kB / 0.5352 GB, free: 9.551 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.4664, allocations: 26.58 kB / 0.5352 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.767e-05/0.4664, allocations: 37.84 kB / 0.5352 GB, free: 9.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4666, allocations: 320.2 kB / 0.5355 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.4667, allocations: 41.91 kB / 0.5356 GB, free: 9.152 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.4668, allocations: 45.08 kB / 0.5356 GB, free: 9.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002121/0.4671, allocations: 80.11 kB / 0.5357 GB, free: 9.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4671, allocations: 1.375 kB / 0.5357 GB, free: 9.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00029/0.4674, allocations: 120.5 kB / 0.5358 GB, free: 9.008 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.4674, allocations: 9.438 kB / 0.5358 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4674, allocations: 1.375 kB / 0.5358 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.4674, allocations: 0 / 0.5358 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.983e-05/0.4675, allocations: 16.36 kB / 0.5358 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.4675, allocations: 1.375 kB / 0.5358 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.509e-05/0.4676, allocations: 21.72 kB / 0.5358 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.4677, allocations: 10.16 kB / 0.5359 GB, free: 8.98 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: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.4678, allocations: 122.2 kB / 0.536 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.4678, allocations: 17.38 kB / 0.536 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.4679, allocations: 14.91 kB / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4679, allocations: 1.438 kB / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4679, allocations: 0 / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.4679, allocations: 0 / 0.536 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000564/0.4684, allocations: 398.6 kB / 0.5364 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.4685, allocations: 0 / 0.5364 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.571e-05/0.4686, allocations: 13.45 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4686, allocations: 4.938 kB / 0.5364 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.4686, allocations: 0.9375 kB / 0.5364 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4686, allocations: 3.938 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.4686, allocations: 4.75 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004774/0.4691, allocations: 245.7 kB / 0.5366 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.4692, allocations: 91.45 kB / 0.5367 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.4692, allocations: 2.125 kB / 0.5367 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.4693, allocations: 22.19 kB / 0.5368 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.931e-05/0.4694, allocations: 9.891 kB / 0.5368 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.4694, allocations: 2.312 kB / 0.5368 GB, free: 8.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001151/0.4695, allocations: 115.3 kB / 0.5369 GB, free: 8.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4695, allocations: 3.938 kB / 0.5369 GB, free: 8.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.4698, allocations: 17.56 kB / 0.5369 GB, free: 8.027 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * 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 (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.0007835/0.4706, allocations: 0.7912 MB / 0.5377 GB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003039/0.4709, allocations: 80.58 kB / 0.5377 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4709, allocations: 0 / 0.5377 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.471, allocations: 43.62 kB / 0.5378 GB, free: 7.254 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.4714, allocations: 19.86 kB / 0.5378 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.4739, allocations: 1.69 MB / 0.5395 GB, free: 5.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.4743, allocations: 0.6949 MB / 0.5401 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.574e-05/0.4743, allocations: 13.97 kB / 0.5402 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.036e-05/0.4744, allocations: 32.83 kB / 0.5402 GB, free: 5.059 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4744, allocations: 1.062 kB / 0.5402 GB, free: 5.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.5031, allocations: 2.628 MB / 0.5427 GB, free: 3.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.493, allocations: 15.03 kB / 0.5428 GB, free: 3.668 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1)