Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 109.3 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009678/0.0009677, allocations: 185.1 kB / 19.37 MB, free: 3.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1841/0.1841, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.319, allocations: 60.83 MB / 0.5196 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001958/0.321, allocations: 0.8055 MB / 0.5203 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001905/0.3212, allocations: 50.88 kB / 0.5204 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.904e-05/0.3213, allocations: 4 kB / 0.5204 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.906e-05/0.3214, allocations: 6.469 kB / 0.5204 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.73e-05/0.3215, allocations: 5.031 kB / 0.5204 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001136/0.3216, allocations: 20.5 kB / 0.5204 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.3217, allocations: 36.92 kB / 0.5205 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.885e-05/0.3218, allocations: 14.31 kB / 0.5205 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.556e-05/0.3218, allocations: 17.08 kB / 0.5205 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.989e-05/0.3219, allocations: 18.88 kB / 0.5205 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/0.3219, allocations: 2.375 kB / 0.5205 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.3219, allocations: 7.719 kB / 0.5205 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.3219, allocations: 10.3 kB / 0.5205 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.805e-05/0.322, allocations: 20.69 kB / 0.5205 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.26e-05/0.3221, allocations: 34.78 kB / 0.5206 GB, free: 2.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3221, allocations: 4.969 kB / 0.5206 GB, free: 2.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3221, allocations: 0 / 0.5206 GB, free: 2.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.3221, allocations: 0 / 0.5206 GB, free: 2.938 MB / 382.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.0003155/0.3224, allocations: 349.8 kB / 0.5209 GB, free: 2.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.3224, allocations: 9.594 kB / 0.5209 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.333e-05/0.3225, allocations: 12.44 kB / 0.5209 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.3226, allocations: 178.5 kB / 0.5211 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.3227, allocations: 1.75 kB / 0.5211 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.3227, allocations: 7.781 kB / 0.5211 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.5e-05/0.3228, allocations: 50.09 kB / 0.5212 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.3228, allocations: 192 / 0.5212 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.3228, allocations: 9.406 kB / 0.5212 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3228, allocations: 0 / 0.5212 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.94e-05/0.3229, allocations: 13.97 kB / 0.5212 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003843/0.3233, allocations: 293.9 kB / 0.5215 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.172e-05/0.3233, allocations: 20.11 kB / 0.5215 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.512e-05/0.3233, allocations: 12.2 kB / 0.5215 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-06/0.3233, allocations: 5.422 kB / 0.5215 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.093e-05/0.3234, allocations: 57.41 kB / 0.5216 GB, free: 1.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3234, allocations: 0 / 0.5216 GB, free: 1.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001152/0.3235, allocations: 54.69 kB / 0.5216 GB, free: 1.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.063e-05/0.3236, allocations: 52.78 kB / 0.5217 GB, free: 1.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.451e-05/0.3236, allocations: 116.5 kB / 0.5218 GB, free: 1.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.394e-06/0.3236, allocations: 27.2 kB / 0.5218 GB, free: 1.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.749e-05/0.3237, allocations: 98.91 kB / 0.5219 GB, free: 1.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.069e-05/0.3237, allocations: 6.156 kB / 0.5219 GB, free: 1.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.652e-05/0.3237, allocations: 19.2 kB / 0.5219 GB, free: 1.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.956e-05/0.3238, allocations: 326.1 kB / 0.5222 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.533e-05/0.3238, allocations: 3.422 kB / 0.5222 GB, free: 1.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.062e-05/0.3238, allocations: 21.77 kB / 0.5223 GB, free: 1.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.255e-05/0.3238, allocations: 26.3 kB / 0.5223 GB, free: 1.188 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3239, allocations: 0 / 0.5223 GB, free: 1.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.71e-05/0.3239, allocations: 52.92 kB / 0.5223 GB, free: 1.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.3239, allocations: 12.38 kB / 0.5223 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.324, allocations: 1.062 kB / 0.5223 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.324, allocations: 2.047 kB / 0.5223 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.952e-05/0.324, allocations: 3.625 kB / 0.5223 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.324, allocations: 0.5625 kB / 0.5223 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.723e-05/0.324, allocations: 10.94 kB / 0.5224 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-06/0.3241, allocations: 5.062 kB / 0.5224 GB, free: 1.129 MB / 382.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 4.591e-05/0.3241, allocations: 110.3 kB / 0.5225 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.113e-05/0.3241, allocations: 6.625 kB / 0.5225 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.051e-05/0.3241, allocations: 13.95 kB / 0.5225 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.3242, allocations: 0 / 0.5225 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.3242, allocations: 2.203 kB / 0.5225 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.3242, allocations: 0 / 0.5225 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.3244, allocations: 300 kB / 0.5228 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3244, allocations: 0 / 0.5228 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.786e-05/0.3244, allocations: 3.828 kB / 0.5228 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3244, allocations: 0 / 0.5228 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.3244, allocations: 0 / 0.5228 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.3244, allocations: 5.062 kB / 0.5228 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3245, allocations: 4 kB / 0.5228 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.988e-05/0.3246, allocations: 153.7 kB / 0.5229 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.932e-05/0.3246, allocations: 83.03 kB / 0.523 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.3246, allocations: 5.828 kB / 0.523 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.535e-05/0.3247, allocations: 5.641 kB / 0.523 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.536e-05/0.3247, allocations: 3.469 kB / 0.523 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.3247, allocations: 5.438 kB / 0.523 GB, free: 428 kB / 382.1 MB Notification: Performance of sorting global known variables: time 3.512e-05/0.3247, allocations: 95.48 kB / 0.5231 GB, free: 344 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3247, allocations: 0 / 0.5231 GB, free: 344 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002235/0.325, allocations: 5.344 kB / 0.5231 GB, free: 344 kB / 382.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 6.968e-05/0.325, allocations: 96.61 kB / 0.5232 GB, free: 252 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.214e-05/0.3251, allocations: 20.94 kB / 0.5232 GB, free: 244 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3251, allocations: 3.938 kB / 0.5232 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.747e-05/0.3252, allocations: 7.938 kB / 0.5233 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.3254, allocations: 17.77 kB / 0.5233 GB, free: 232 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002492/0.3257, allocations: 169.1 kB / 0.5234 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.3259, allocations: 0.6882 MB / 0.5241 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.151e-05/0.326, allocations: 10.16 kB / 0.5241 GB, free: 15.36 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.326, allocations: 0 / 0.5241 GB, free: 15.36 MB / 398.1 MB Notification: Performance of Templates: time 0.002105/0.3281, allocations: 0.738 MB / 0.5248 GB, free: 15.3 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches