Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",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.0008828/0.000883, allocations: 103.3 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.00101/0.00101, allocations: 185.8 kB / 16.92 MB, free: 6.914 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.445/1.445, allocations: 205.4 MB / 223.1 MB, free: 5.754 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.3741/0.3741, allocations: 43.58 MB / 315 MB, free: 8.691 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.0005074/0.0005074, allocations: 12 kB / 384.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1122, allocations: 58.85 MB / 443.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002024/0.1142, allocations: 1.33 MB / 444.9 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008792/0.1151, allocations: 0.5036 MB / 445.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.339e-05/0.1153, allocations: 0 / 445.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.1154, allocations: 7.922 kB / 445.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.992e-05/0.1155, allocations: 11.94 kB / 445.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.1157, allocations: 31.91 kB / 445.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.1159, allocations: 71.78 kB / 445.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.116, allocations: 40.39 kB / 445.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.018e-05/0.1161, allocations: 19.88 kB / 445.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.886e-05/0.1162, allocations: 31.78 kB / 445.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1162, allocations: 0 / 445.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.115e-05/0.1162, allocations: 4 kB / 445.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.543e-05/0.1162, allocations: 15.92 kB / 445.6 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.461e-05/0.1163, allocations: 57.5 kB / 445.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.171e-05/0.1164, allocations: 63.78 kB / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1164, allocations: 0 / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1164, allocations: 0 / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.1164, allocations: 0 / 445.7 MB, free: 10.39 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004745/0.1169, allocations: 379.2 kB / 446.1 MB, free: 9.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1169, allocations: 15.95 kB / 446.1 MB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.117, allocations: 38.75 kB / 446.1 MB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.117, allocations: 12.84 kB / 446.1 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.1172, allocations: 200.1 kB / 446.3 MB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.1172, allocations: 4.375 kB / 446.3 MB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/0.1173, allocations: 12.38 kB / 446.4 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.1174, allocations: 77.73 kB / 446.4 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.1174, allocations: 0 / 446.4 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.1174, allocations: 4 kB / 446.4 MB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1175, allocations: 4 kB / 446.4 MB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.55e-05/0.1175, allocations: 31.97 kB / 446.5 MB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005325/0.1181, allocations: 360.6 kB / 446.8 MB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.693e-05/0.1182, allocations: 50.5 kB / 446.9 MB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.292e-05/0.1182, allocations: 20.89 kB / 446.9 MB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.1182, allocations: 0 / 446.9 MB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.1184, allocations: 71.41 kB / 447 MB, free: 8.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1184, allocations: 0 / 447 MB, free: 8.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002019/0.1186, allocations: 97.45 kB / 447.1 MB, free: 8.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.1187, allocations: 51.41 kB / 447.1 MB, free: 8.801 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.1188, allocations: 133.8 kB / 447.2 MB, free: 8.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.1188, allocations: 37.7 kB / 447.3 MB, free: 8.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.1188, allocations: 100 kB / 447.4 MB, free: 8.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.865e-05/0.1189, allocations: 7.812 kB / 447.4 MB, free: 8.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.1189, allocations: 21.7 kB / 447.4 MB, free: 8.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.119, allocations: 322.8 kB / 447.7 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.678e-05/0.1191, allocations: 16 kB / 447.7 MB, free: 8.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.592e-05/0.1191, allocations: 34.56 kB / 447.8 MB, free: 8.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.157e-05/0.1192, allocations: 58.5 kB / 447.8 MB, free: 8.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1192, allocations: 0 / 447.8 MB, free: 8.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001287/0.1193, allocations: 85.53 kB / 447.9 MB, free: 7.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.1193, allocations: 4 kB / 447.9 MB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.1194, allocations: 7.938 kB / 447.9 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.1194, allocations: 0 / 447.9 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.032e-05/0.1194, allocations: 11.98 kB / 447.9 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1195, allocations: 3.938 kB / 447.9 MB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.977e-05/0.1195, allocations: 27.89 kB / 448 MB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.1195, allocations: 192 / 448 MB, free: 7.887 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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 7.733e-05/0.1196, allocations: 121.3 kB / 448.1 MB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.1196, allocations: 15.78 kB / 448.1 MB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.897e-05/0.1197, allocations: 16.66 kB / 448.1 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1197, allocations: 0 / 448.1 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1197, allocations: 0 / 448.1 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.1197, allocations: 0 / 448.1 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.12, allocations: 354.4 kB / 448.5 MB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.12, allocations: 0 / 448.5 MB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.735e-05/0.1201, allocations: 7.984 kB / 448.5 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1201, allocations: 0 / 448.5 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.1201, allocations: 0 / 448.5 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1201, allocations: 4 kB / 448.5 MB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1201, allocations: 0 / 448.5 MB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.1203, allocations: 191.9 kB / 448.7 MB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.143e-05/0.1204, allocations: 85.05 kB / 448.7 MB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.1204, allocations: 7.938 kB / 448.8 MB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.936e-05/0.1205, allocations: 11.98 kB / 448.8 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.1205, allocations: 0 / 448.8 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.1205, allocations: 11.98 kB / 448.8 MB, free: 6.984 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.294e-05/0.1206, allocations: 103.3 kB / 448.9 MB, free: 6.883 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1206, allocations: 0 / 448.9 MB, free: 6.883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002253/0.1208, allocations: 19.91 kB / 448.9 MB, free: 6.863 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.000431/0.1213, allocations: 0.7319 MB / 449.6 MB, free: 6.102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001161/0.1214, allocations: 47.92 kB / 449.7 MB, free: 6.055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1214, allocations: 0 / 449.7 MB, free: 6.055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.827e-05/0.1215, allocations: 27.92 kB / 449.7 MB, free: 6.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.1218, allocations: 20.17 kB / 449.7 MB, free: 6.008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.1232, allocations: 1.562 MB / 451.3 MB, free: 4.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.1235, allocations: 0.6926 MB / 452 MB, free: 3.637 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.848e-05/0.1235, allocations: 8.422 kB / 452 MB, free: 3.629 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.1236, allocations: 23.44 kB / 452 MB, free: 3.605 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1236, allocations: 4 kB / 452 MB, free: 3.602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01051/0.1341, allocations: 1.924 MB / 453.9 MB, free: 1.695 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.1343, allocations: 189.1 kB / 454.1 MB, free: 1.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/1.905, allocations: 4 kB / 454.1 MB, free: 1.438 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches