Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_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.00146/0.00146, allocations: 106.9 kB / 17.21 MB, free: 6.273 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.001693/0.001693, allocations: 194 kB / 18.12 MB, free: 5.363 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.382/1.382, allocations: 222.9 MB / 241.8 MB, free: 15.51 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.2046/0.2046, allocations: 44.17 MB / 336.1 MB, free: 3.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 67.81 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, allocations: 60.82 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002883/0.1147, allocations: 1.666 MB / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007896/0.1155, allocations: 482.9 kB / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.355e-05/0.1156, allocations: 0 / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.1158, allocations: 7.875 kB / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.381e-05/0.1158, allocations: 23.78 kB / 470.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.116, allocations: 27.98 kB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.1162, allocations: 71.78 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.1163, allocations: 28.22 kB / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.522e-05/0.1164, allocations: 31.84 kB / 470.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.206e-05/0.1165, allocations: 31.84 kB / 471 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.1165, allocations: 4 kB / 471 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.655e-05/0.1165, allocations: 4 kB / 471 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.779e-05/0.1165, allocations: 15.92 kB / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.34e-05/0.1166, allocations: 27.81 kB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.1167, allocations: 75.94 kB / 471.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1167, allocations: 0 / 471.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1168, allocations: 0 / 471.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1168, allocations: 4 kB / 471.1 MB, free: 12.24 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005521/0.1173, allocations: 391.2 kB / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1174, allocations: 8.031 kB / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.487e-05/0.1174, allocations: 38.73 kB / 471.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.1175, allocations: 12.84 kB / 471.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001875/0.1177, allocations: 184.2 kB / 471.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.1177, allocations: 12.38 kB / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.1177, allocations: 8.359 kB / 471.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.1179, allocations: 89.67 kB / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.1179, allocations: 3.984 kB / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.1179, allocations: 0 / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1179, allocations: 0 / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.317e-05/0.118, allocations: 35.98 kB / 471.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.1186, allocations: 360.6 kB / 472.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.1187, allocations: 50.59 kB / 472.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.556e-05/0.1187, allocations: 16.86 kB / 472.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/0.1187, allocations: 0 / 472.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000187/0.1189, allocations: 71.38 kB / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.1189, allocations: 0 / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002105/0.1192, allocations: 97.5 kB / 472.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.1192, allocations: 51.41 kB / 472.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.1193, allocations: 145.6 kB / 472.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1194, allocations: 25.7 kB / 472.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.856e-05/0.1194, allocations: 100 kB / 472.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.1194, allocations: 15.81 kB / 472.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.1195, allocations: 29.7 kB / 472.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1196, allocations: 318.8 kB / 473.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.37e-05/0.1197, allocations: 23.92 kB / 473.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.294e-05/0.1197, allocations: 42.5 kB / 473.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.23e-05/0.1198, allocations: 42.58 kB / 473.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1198, allocations: 0 / 473.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001404/0.12, allocations: 89.52 kB / 473.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.12, allocations: 12 kB / 473.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.12, allocations: 3.938 kB / 473.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.12, allocations: 4 kB / 473.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.178e-05/0.1201, allocations: 4 kB / 473.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.1201, allocations: 7.984 kB / 473.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.259e-05/0.1202, allocations: 15.84 kB / 473.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.503e-06/0.1202, allocations: 0 / 473.4 MB, free: 9.727 MB / 350.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 9.307e-05/0.1203, allocations: 120.5 kB / 473.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.1203, allocations: 11.91 kB / 473.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.1203, allocations: 16.64 kB / 473.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1204, allocations: 0 / 473.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1204, allocations: 4 kB / 473.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1204, allocations: 0 / 473.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003324/0.1207, allocations: 342.8 kB / 473.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1207, allocations: 0 / 473.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.955e-05/0.1208, allocations: 4 kB / 473.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1208, allocations: 0 / 473.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.1208, allocations: 4 kB / 473.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1208, allocations: 4 kB / 473.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1208, allocations: 4 kB / 473.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.121, allocations: 203.4 kB / 474.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/0.1211, allocations: 89 kB / 474.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.1211, allocations: 0 / 474.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.215e-05/0.1212, allocations: 4 kB / 474.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.656e-05/0.1213, allocations: 7.984 kB / 474.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.1213, allocations: 16 kB / 474.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.406e-05/0.1214, allocations: 107.2 kB / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1214, allocations: 0 / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002404/0.1216, allocations: 15.91 kB / 474.3 MB, free: 8.695 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,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.0004774/0.1221, allocations: 0.7245 MB / 475 MB, free: 7.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001349/0.1222, allocations: 51.97 kB / 475.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1223, allocations: 192 / 475.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.107e-05/0.1223, allocations: 16 kB / 475.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.1226, allocations: 23.92 kB / 475.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.1242, allocations: 1.534 MB / 476.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.1245, allocations: 0.7004 MB / 477.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.069e-05/0.1245, allocations: 8.438 kB / 477.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.57e-05/0.1246, allocations: 31.42 kB / 477.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1246, allocations: 0 / 477.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01174/0.1363, allocations: 1.994 MB / 479.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003086/0.1367, allocations: 193.4 kB / 479.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.01, allocations: 64 / 479.6 MB, free: 3.305 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches