Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009403/0.00094, allocations: 101.9 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 185.6 kB / 16.92 MB, free: 6.918 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.481/1.481, allocations: 205.4 MB / 223.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3602/0.3602, allocations: 43.57 MB / 315 MB, free: 8.738 MB / 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.0004966/0.0004967, allocations: 16 kB / 384.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1056, allocations: 58.86 MB / 443.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002354/0.108, allocations: 1.342 MB / 444.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1092, allocations: 0.5815 MB / 445.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.1094, allocations: 0 / 445.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.1096, allocations: 7.938 kB / 445.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.771e-05/0.1097, allocations: 3.938 kB / 445.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003969/0.1101, allocations: 83.83 kB / 445.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000176/0.1103, allocations: 111.7 kB / 445.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.1104, allocations: 36.19 kB / 445.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.374e-05/0.1105, allocations: 39.83 kB / 445.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.542e-05/0.1106, allocations: 31.84 kB / 445.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.1106, allocations: 0 / 445.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.436e-05/0.1107, allocations: 4 kB / 445.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.871e-05/0.1107, allocations: 15.92 kB / 445.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.421e-05/0.1108, allocations: 65.38 kB / 445.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.1109, allocations: 75.73 kB / 445.9 MB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1109, allocations: 0 / 445.9 MB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1109, allocations: 4 kB / 445.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1109, allocations: 7.938 kB / 445.9 MB, free: 10.16 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006217/0.1115, allocations: 399.2 kB / 446.3 MB, free: 9.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.1116, allocations: 12.03 kB / 446.3 MB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.995e-05/0.1117, allocations: 38.73 kB / 446.4 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.1117, allocations: 16.84 kB / 446.4 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.112, allocations: 199.9 kB / 446.6 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.112, allocations: 12.31 kB / 446.6 MB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.1121, allocations: 8.375 kB / 446.6 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.1124, allocations: 109.8 kB / 446.7 MB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.1124, allocations: 0 / 446.7 MB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.1124, allocations: 4 kB / 446.7 MB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.1124, allocations: 11.92 kB / 446.7 MB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.1126, allocations: 51.97 kB / 446.8 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007495/0.1134, allocations: 396.4 kB / 447.2 MB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000338/0.1137, allocations: 122.5 kB / 447.3 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.1138, allocations: 40.89 kB / 447.3 MB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.749e-06/0.1139, allocations: 0 / 447.3 MB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.1142, allocations: 111.3 kB / 447.4 MB, free: 8.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.1142, allocations: 4 kB / 447.4 MB, free: 8.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004555/0.1146, allocations: 153.5 kB / 447.6 MB, free: 8.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.1147, allocations: 55.41 kB / 447.6 MB, free: 8.258 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.1148, allocations: 145.8 kB / 447.8 MB, free: 8.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1148, allocations: 29.7 kB / 447.8 MB, free: 8.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.1149, allocations: 108 kB / 447.9 MB, free: 7.961 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.1149, allocations: 15.89 kB / 447.9 MB, free: 7.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.115, allocations: 17.66 kB / 448 MB, free: 7.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1151, allocations: 326.8 kB / 448.3 MB, free: 7.594 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.1152, allocations: 35.97 kB / 448.3 MB, free: 7.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.1154, allocations: 57.69 kB / 448.4 MB, free: 7.496 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.1156, allocations: 89.61 kB / 448.5 MB, free: 7.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1156, allocations: 0 / 448.5 MB, free: 7.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003012/0.1159, allocations: 133.7 kB / 448.6 MB, free: 7.266 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.1159, allocations: 7.938 kB / 448.6 MB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.1159, allocations: 96 / 448.6 MB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.116, allocations: 11.88 kB / 448.6 MB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.928e-05/0.1161, allocations: 15.98 kB / 448.6 MB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.1161, allocations: 320 / 448.6 MB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.991e-05/0.1162, allocations: 31.89 kB / 448.6 MB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.1162, allocations: 0 / 448.6 MB, free: 7.199 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: 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 8.569e-05/0.1163, allocations: 113.8 kB / 448.8 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.1163, allocations: 15.84 kB / 448.8 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.497e-05/0.1164, allocations: 16.66 kB / 448.8 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1164, allocations: 4 kB / 448.8 MB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1164, allocations: 3.984 kB / 448.8 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1164, allocations: 0 / 448.8 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005595/0.1169, allocations: 394.5 kB / 449.2 MB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.117, allocations: 4 kB / 449.2 MB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.529e-05/0.1171, allocations: 15.98 kB / 449.2 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1171, allocations: 0 / 449.2 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.1171, allocations: 4 kB / 449.2 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.1171, allocations: 7.938 kB / 449.2 MB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1171, allocations: 0 / 449.2 MB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/0.1176, allocations: 267.2 kB / 449.5 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.382e-05/0.1176, allocations: 89.03 kB / 449.6 MB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.1176, allocations: 0 / 449.6 MB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.1178, allocations: 32.05 kB / 449.6 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-05/0.1179, allocations: 11.97 kB / 449.6 MB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.1179, allocations: 4 kB / 449.6 MB, free: 6.141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.382e-05/0.118, allocations: 108 kB / 449.7 MB, free: 6.035 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.118, allocations: 0 / 449.7 MB, free: 6.035 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002345/0.1182, allocations: 23.92 kB / 449.7 MB, free: 6.012 MB / 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: 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.0007321/0.1189, allocations: 0.7981 MB / 450.5 MB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003017/0.1193, allocations: 95.94 kB / 450.6 MB, free: 5.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1193, allocations: 0 / 450.6 MB, free: 5.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.1194, allocations: 47.97 kB / 450.7 MB, free: 5.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.1197, allocations: 15.98 kB / 450.7 MB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.1218, allocations: 1.688 MB / 452.4 MB, free: 3.254 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.1221, allocations: 0.6964 MB / 453.1 MB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.063e-05/0.1222, allocations: 20.41 kB / 453.1 MB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.07e-05/0.1223, allocations: 31.42 kB / 453.1 MB, free: 2.477 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1223, allocations: 0 / 453.1 MB, free: 2.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01268/0.135, allocations: 2.235 MB / 455.4 MB, free: 276 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/0.1352, allocations: 191.8 kB / 455.6 MB, free: 12 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/1.978, allocations: 0 / 455.6 MB, free: 12 kB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches