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: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001349, allocations: 118.2 kB / 17.79 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.001588/0.001588, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 46.11 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 71.89 kB / 481.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4212/0.4225, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.003317/0.4259, allocations: 0.8184 MB / 0.5318 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002839/0.4262, allocations: 48.75 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.569e-05/0.4263, allocations: 1.719 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.4265, allocations: 3.938 kB / 0.5318 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.27e-05/0.4265, allocations: 3.938 kB / 0.5318 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001674/0.4267, allocations: 20.7 kB / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001547/0.4269, allocations: 41.69 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.4271, allocations: 24.14 kB / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.875e-05/0.4271, allocations: 11.55 kB / 0.5319 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.847e-05/0.4272, allocations: 10.41 kB / 0.5319 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.4272, allocations: 4.219 kB / 0.5319 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.551e-05/0.4273, allocations: 2.312 kB / 0.5319 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.096e-05/0.4273, allocations: 9.484 kB / 0.5319 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.301e-05/0.4274, allocations: 23.62 kB / 0.532 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.4275, allocations: 44.28 kB / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4276, allocations: 0 / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4276, allocations: 1.312 kB / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.4276, allocations: 4 kB / 0.532 GB, free: 12.83 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.0005789/0.4282, allocations: 350.3 kB / 0.5323 GB, free: 12.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4283, allocations: 8.562 kB / 0.5324 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.101e-05/0.4283, allocations: 8.281 kB / 0.5324 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.4287, allocations: 170.2 kB / 0.5325 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.4287, allocations: 2.594 kB / 0.5325 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.4287, allocations: 10.47 kB / 0.5325 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.4289, allocations: 54.47 kB / 0.5326 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.429, allocations: 4.125 kB / 0.5326 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.429, allocations: 3.938 kB / 0.5326 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.429, allocations: 1.125 kB / 0.5326 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.291e-05/0.4291, allocations: 15.73 kB / 0.5326 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007201/0.4298, allocations: 291.9 kB / 0.5329 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.189e-05/0.4299, allocations: 23.86 kB / 0.5329 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.615e-05/0.43, allocations: 15.42 kB / 0.5329 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.43, allocations: 1.406 kB / 0.5329 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001113/0.4301, allocations: 49.66 kB / 0.533 GB, free: 11.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.823e-06/0.4302, allocations: 0 / 0.533 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002093/0.4304, allocations: 54.73 kB / 0.533 GB, free: 11.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.4304, allocations: 52.66 kB / 0.5331 GB, free: 11.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.4306, allocations: 114.9 kB / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.4306, allocations: 30.83 kB / 0.5332 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.4307, allocations: 94.69 kB / 0.5333 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/0.4308, allocations: 8.906 kB / 0.5333 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.4308, allocations: 17.66 kB / 0.5333 GB, free: 11.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.431, allocations: 323.8 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.847e-05/0.4311, allocations: 3.844 kB / 0.5337 GB, free: 11.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.767e-05/0.4311, allocations: 18 kB / 0.5337 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.213e-05/0.4312, allocations: 34.75 kB / 0.5337 GB, free: 11.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4312, allocations: 0 / 0.5337 GB, free: 11.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001634/0.4314, allocations: 53.59 kB / 0.5338 GB, free: 10.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4315, allocations: 4.906 kB / 0.5338 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.4315, allocations: 5.938 kB / 0.5338 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.4315, allocations: 0 / 0.5338 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.347e-05/0.4316, allocations: 7.781 kB / 0.5338 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.4316, allocations: 3.984 kB / 0.5338 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.456e-05/0.4317, allocations: 9.812 kB / 0.5338 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.4317, allocations: 5.844 kB / 0.5338 GB, free: 10.96 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 0.0001375/0.4319, allocations: 111.8 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.002e-05/0.4319, allocations: 3.75 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.431e-05/0.4319, allocations: 3.906 kB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.432, allocations: 2 kB / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.432, allocations: 0 / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.432, allocations: 0 / 0.5339 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004898/0.4325, allocations: 304.6 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4325, allocations: 0 / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.438e-05/0.4326, allocations: 6.344 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.4326, allocations: 1.688 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.4326, allocations: 4 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.4326, allocations: 3.938 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4327, allocations: 0 / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.4329, allocations: 152.8 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.79e-05/0.433, allocations: 78.58 kB / 0.5344 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.433, allocations: 5.656 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.4331, allocations: 3.938 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.4332, allocations: 1.859 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.4332, allocations: 9.328 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.801e-05/0.4333, allocations: 88.53 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4333, allocations: 0 / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004141/0.4338, allocations: 9.781 kB / 0.5345 GB, free: 10.15 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.0001433/0.4339, allocations: 97.98 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.4341, allocations: 27.45 kB / 0.5347 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4341, allocations: 0 / 0.5347 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.491e-05/0.4342, allocations: 13.64 kB / 0.5347 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.4346, allocations: 19.5 kB / 0.5347 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004644/0.4351, allocations: 124.3 kB / 0.5348 GB, free: 9.898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.4355, allocations: 0.6819 MB / 0.5355 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.201e-05/0.4356, allocations: 3 kB / 0.5355 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.4356, allocations: 14.25 kB / 0.5355 GB, free: 9.188 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.4356, allocations: 0 / 0.5355 GB, free: 9.188 MB / 398.1 MB Notification: Performance of Templates: time 0.004241/0.4399, allocations: 0.5038 MB / 0.536 GB, free: 8.93 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches