Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 110.7 kB / 17.04 MB, free: 5.812 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.001272/0.001271, allocations: 196 kB / 17.97 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2042/0.2042, allocations: 43.51 MB / 314.7 MB, free: 492 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001557, allocations: 66.31 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.105, allocations: 57.79 MB / 442 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00227/0.1073, allocations: 0.8104 MB / 442.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002421/0.1076, allocations: 43.83 kB / 442.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.129e-05/0.1077, allocations: 7.938 kB / 442.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1078, allocations: 7.938 kB / 442.8 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.15e-05/0.1079, allocations: 3.938 kB / 442.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001314/0.108, allocations: 19.97 kB / 442.9 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.1081, allocations: 39.91 kB / 442.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.1082, allocations: 23.92 kB / 442.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.2e-05/0.1083, allocations: 11.94 kB / 442.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.1083, allocations: 11.92 kB / 442.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.1083, allocations: 4 kB / 442.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.054e-05/0.1084, allocations: 4 kB / 442.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.86e-05/0.1084, allocations: 7.938 kB / 443 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.368e-05/0.1084, allocations: 15.92 kB / 443 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.1085, allocations: 39.83 kB / 443 MB, free: 5.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1085, allocations: 0 / 443 MB, free: 5.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1086, allocations: 4 kB / 443 MB, free: 5.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1086, allocations: 4 kB / 443 MB, free: 5.105 MB / 318.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.0003815/0.109, allocations: 347.4 kB / 443.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.109, allocations: 15.89 kB / 443.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.109, allocations: 4.875 kB / 443.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.1093, allocations: 188.2 kB / 443.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.1093, allocations: 384 / 443.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.1093, allocations: 4.375 kB / 443.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.1094, allocations: 54.23 kB / 443.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.1094, allocations: 4.188 kB / 443.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1094, allocations: 7.875 kB / 443.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.1095, allocations: 0 / 443.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.276e-05/0.1095, allocations: 15.98 kB / 443.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004641/0.11, allocations: 296.6 kB / 443.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.792e-05/0.11, allocations: 22.58 kB / 444 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.938e-05/0.1101, allocations: 19.2 kB / 444 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.1101, allocations: 0 / 444 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.858e-05/0.1102, allocations: 55.34 kB / 444 MB, free: 3.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1102, allocations: 0 / 444 MB, free: 3.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001297/0.1103, allocations: 49.59 kB / 444.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.963e-05/0.1103, allocations: 51.41 kB / 444.1 MB, free: 3.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.376e-05/0.1104, allocations: 117.8 kB / 444.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-06/0.1104, allocations: 33.64 kB / 444.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.103e-05/0.1105, allocations: 92.12 kB / 444.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.24e-05/0.1105, allocations: 7.906 kB / 444.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.1105, allocations: 17.72 kB / 444.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.144e-05/0.1105, allocations: 318.8 kB / 444.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.594e-05/0.1106, allocations: 8 kB / 444.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.907e-05/0.1106, allocations: 13.72 kB / 444.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.263e-05/0.1106, allocations: 33.7 kB / 444.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1106, allocations: 0 / 444.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.686e-05/0.1107, allocations: 53.55 kB / 444.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.1107, allocations: 5.25 kB / 444.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1107, allocations: 4 kB / 444.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1108, allocations: 3.984 kB / 444.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.114e-05/0.1108, allocations: 4 kB / 444.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.1108, allocations: 0 / 444.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.806e-05/0.1108, allocations: 3.938 kB / 444.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.1109, allocations: 11.97 kB / 444.8 MB, free: 3.043 MB / 318.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 5.224e-05/0.1109, allocations: 117.7 kB / 445 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.1109, allocations: 7.906 kB / 445 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.088e-05/0.111, allocations: 7.906 kB / 445 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.111, allocations: 4.359 kB / 445 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.111, allocations: 4 kB / 445 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.111, allocations: 0 / 445 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.1112, allocations: 290.6 kB / 445.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1112, allocations: 7.938 kB / 445.3 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.221e-05/0.1113, allocations: 7.984 kB / 445.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1113, allocations: 3.938 kB / 445.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1113, allocations: 0 / 445.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1113, allocations: 11.88 kB / 445.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1113, allocations: 0 / 445.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001046/0.1114, allocations: 155.9 kB / 445.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.225e-05/0.1114, allocations: 77.11 kB / 445.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.1114, allocations: 64 / 445.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.594e-05/0.1115, allocations: 11.92 kB / 445.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.1115, allocations: 4 kB / 445.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.1115, allocations: 0 / 445.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.411e-05/0.1116, allocations: 95.27 kB / 445.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1116, allocations: 0 / 445.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000222/0.1118, allocations: 8 kB / 445.6 MB, free: 2.141 MB / 318.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 7.747e-05/0.1119, allocations: 91.25 kB / 445.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.388e-05/0.112, allocations: 27.92 kB / 445.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.112, allocations: 0 / 445.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.572e-05/0.112, allocations: 8 kB / 445.8 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.1123, allocations: 4 kB / 445.8 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.1126, allocations: 158.3 kB / 445.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.1127, allocations: 0.6807 MB / 446.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.118e-05/0.1128, allocations: 3.984 kB / 446.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.926e-05/0.1128, allocations: 11.44 kB / 446.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1128, allocations: 4.062 kB / 446.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of Templates: time 0.002599/0.1154, allocations: 0.5099 MB / 447.1 MB, free: 0.5859 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches