Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001158, allocations: 110 kB / 17.86 MB, free: 5.504 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.00128/0.00128, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.296/1.296, allocations: 222.9 MB / 242.5 MB, free: 13.71 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.2209/0.2209, allocations: 44.17 MB / 336.8 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 71.58 kB / 408.3 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09928, allocations: 60.83 MB / 469.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003162/0.1025, allocations: 1.673 MB / 470.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009374/0.1035, allocations: 0.5416 MB / 471.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.936e-05/0.1036, allocations: 7.938 kB / 471.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1037, allocations: 7.922 kB / 471.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.784e-05/0.1038, allocations: 11.88 kB / 471.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003395/0.1041, allocations: 83.22 kB / 471.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001507/0.1043, allocations: 103.8 kB / 471.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.1044, allocations: 31.97 kB / 471.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.789e-05/0.1045, allocations: 43.84 kB / 471.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.446e-05/0.1046, allocations: 39.77 kB / 471.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.1046, allocations: 4 kB / 471.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.796e-05/0.1047, allocations: 4 kB / 471.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.337e-05/0.1047, allocations: 19.92 kB / 471.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.242e-05/0.1047, allocations: 35.78 kB / 471.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.1049, allocations: 60.14 kB / 471.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1049, allocations: 0 / 471.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1049, allocations: 0 / 471.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1049, allocations: 4 kB / 471.8 MB, free: 12.13 MB / 350.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.0007343/0.1056, allocations: 411.1 kB / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1057, allocations: 12.03 kB / 472.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.676e-05/0.1057, allocations: 8.844 kB / 472.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.1059, allocations: 212 kB / 472.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.106, allocations: 4.375 kB / 472.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.106, allocations: 8.375 kB / 472.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.1063, allocations: 106 kB / 472.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1063, allocations: 3.938 kB / 472.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.1063, allocations: 3.938 kB / 472.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.1063, allocations: 7.984 kB / 472.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.1065, allocations: 47.97 kB / 472.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007001/0.1072, allocations: 396.4 kB / 473 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003362/0.1076, allocations: 98.52 kB / 473.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.1077, allocations: 36.91 kB / 473.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.1077, allocations: 4 kB / 473.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.108, allocations: 99.36 kB / 473.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.926e-06/0.108, allocations: 0 / 473.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004403/0.1085, allocations: 141.5 kB / 473.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.1085, allocations: 55.34 kB / 473.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.1087, allocations: 151.8 kB / 473.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1087, allocations: 29.7 kB / 473.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.204e-05/0.1088, allocations: 100 kB / 473.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.1088, allocations: 19.8 kB / 473.8 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.69e-05/0.1088, allocations: 33.7 kB / 473.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.109, allocations: 318.8 kB / 474.1 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.1091, allocations: 31.98 kB / 474.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.1092, allocations: 53.62 kB / 474.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.1095, allocations: 77.67 kB / 474.3 MB, free: 9.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1095, allocations: 0 / 474.3 MB, free: 9.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002866/0.1098, allocations: 121.7 kB / 474.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.1098, allocations: 12.03 kB / 474.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1098, allocations: 3.938 kB / 474.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.1098, allocations: 0 / 474.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.959e-05/0.1099, allocations: 19.92 kB / 474.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1099, allocations: 0 / 474.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.11, allocations: 27.97 kB / 474.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1101, allocations: 4 kB / 474.4 MB, free: 9.289 MB / 350.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.0001017/0.1102, allocations: 125.8 kB / 474.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.112e-05/0.1102, allocations: 11.84 kB / 474.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.573e-05/0.1102, allocations: 12.72 kB / 474.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1102, allocations: 4 kB / 474.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1103, allocations: 0 / 474.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1103, allocations: 0 / 474.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005185/0.1108, allocations: 398.4 kB / 475 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1108, allocations: 0 / 475 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.562e-05/0.1109, allocations: 11.98 kB / 475 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1109, allocations: 0 / 475 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.1109, allocations: 4 kB / 475 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1109, allocations: 0 / 475 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1109, allocations: 4 kB / 475 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.1114, allocations: 247.2 kB / 475.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.482e-05/0.1115, allocations: 85.11 kB / 475.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.1115, allocations: 8 kB / 475.3 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.1116, allocations: 19.97 kB / 475.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.702e-05/0.1117, allocations: 11.98 kB / 475.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.1117, allocations: 3.984 kB / 475.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.468e-05/0.1118, allocations: 112.4 kB / 475.5 MB, free: 8.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1118, allocations: 0 / 475.5 MB, free: 8.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.112, allocations: 12 kB / 475.5 MB, free: 8.141 MB / 350.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.0001004/0.1121, allocations: 111.7 kB / 475.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002868/0.1124, allocations: 83.83 kB / 475.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1124, allocations: 0 / 475.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.1126, allocations: 44.05 kB / 475.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.1129, allocations: 19.92 kB / 475.7 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005562/0.1135, allocations: 286.5 kB / 476 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.1137, allocations: 0.6965 MB / 476.7 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.266e-05/0.1138, allocations: 15.44 kB / 476.7 MB, free: 6.824 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1138, allocations: 192 / 476.7 MB, free: 6.824 MB / 350.1 MB Notification: Performance of Templates: time 0.002722/0.1165, allocations: 1.342 MB / 478.1 MB, free: 5.488 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches