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.001251/0.001251, allocations: 96.14 kB / 15.87 MB, free: 16 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.001343/0.001343, allocations: 206.3 kB / 16.79 MB, free: 6.84 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.295/1.295, allocations: 205.1 MB / 222.6 MB, free: 5.008 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.301/0.301, allocations: 43.49 MB / 313.5 MB, free: 8.594 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.001425/0.001425, allocations: 71.91 kB / 382.1 MB, free: 8.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1127, allocations: 57.78 MB / 439.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002992/0.1157, allocations: 1.665 MB / 441.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009546/0.1167, allocations: 0.5229 MB / 442.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1168, allocations: 4 kB / 442.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.117, allocations: 3.938 kB / 442.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.426e-05/0.1171, allocations: 15.84 kB / 442.1 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.1173, allocations: 27.98 kB / 442.2 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.1174, allocations: 71.78 kB / 442.2 MB, free: 12.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.1175, allocations: 32.42 kB / 442.3 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.536e-05/0.1176, allocations: 35.84 kB / 442.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.534e-05/0.1177, allocations: 35.78 kB / 442.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.1177, allocations: 4 kB / 442.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.68e-05/0.1177, allocations: 4 kB / 442.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.66e-05/0.1178, allocations: 11.92 kB / 442.3 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.694e-05/0.1178, allocations: 31.81 kB / 442.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.1179, allocations: 63.78 kB / 442.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.118, allocations: 0 / 442.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.165e-06/0.118, allocations: 4 kB / 442.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.118, allocations: 4 kB / 442.4 MB, free: 12.5 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.000625/0.1186, allocations: 387.2 kB / 442.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1187, allocations: 8.031 kB / 442.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.145e-05/0.1187, allocations: 42.73 kB / 442.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.1188, allocations: 8.844 kB / 442.9 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.119, allocations: 196.1 kB / 443.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.119, allocations: 4.375 kB / 443.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.119, allocations: 12.36 kB / 443.1 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.1192, allocations: 81.73 kB / 443.2 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1192, allocations: 0 / 443.2 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.1192, allocations: 8 kB / 443.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1192, allocations: 0 / 443.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.713e-05/0.1193, allocations: 35.92 kB / 443.2 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005233/0.1198, allocations: 360.6 kB / 443.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.549e-05/0.12, allocations: 46.5 kB / 443.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.226e-05/0.12, allocations: 16.89 kB / 443.6 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.12, allocations: 0 / 443.6 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.1202, allocations: 71.42 kB / 443.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.1202, allocations: 0 / 443.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002037/0.1204, allocations: 97.44 kB / 443.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.1204, allocations: 55.41 kB / 443.8 MB, free: 10.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.713e-05/0.1205, allocations: 141.7 kB / 444 MB, free: 10.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.1205, allocations: 25.7 kB / 444 MB, free: 10.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/0.1206, allocations: 100 kB / 444.1 MB, free: 10.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.1206, allocations: 15.81 kB / 444.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.1207, allocations: 29.7 kB / 444.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.959e-05/0.1208, allocations: 318.8 kB / 444.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.776e-05/0.1208, allocations: 19.98 kB / 444.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.055e-05/0.1209, allocations: 38.56 kB / 444.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.988e-05/0.1209, allocations: 54.81 kB / 444.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1209, allocations: 0 / 444.6 MB, free: 10.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001242/0.1211, allocations: 85.52 kB / 444.7 MB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.1211, allocations: 15.66 kB / 444.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1211, allocations: 3.938 kB / 444.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1211, allocations: 0 / 444.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.309e-05/0.1212, allocations: 11.94 kB / 444.7 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.1212, allocations: 3.984 kB / 444.7 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.433e-05/0.1213, allocations: 11.94 kB / 444.7 MB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.1213, allocations: 4 kB / 444.7 MB, free: 9.988 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.493e-05/0.1214, allocations: 117.8 kB / 444.8 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.1214, allocations: 15.84 kB / 444.8 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.1214, allocations: 20.64 kB / 444.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1214, allocations: 0 / 444.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1214, allocations: 0 / 444.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.1215, allocations: 0 / 444.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002942/0.1218, allocations: 350.4 kB / 445.2 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1218, allocations: 4 kB / 445.2 MB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.657e-05/0.1218, allocations: 4 kB / 445.2 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1218, allocations: 0 / 445.2 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.1218, allocations: 4 kB / 445.2 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1219, allocations: 4 kB / 445.2 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1219, allocations: 4 kB / 445.2 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.1221, allocations: 191.3 kB / 445.4 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/0.1221, allocations: 93.03 kB / 445.5 MB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.1221, allocations: 0 / 445.5 MB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.548e-05/0.1222, allocations: 4 kB / 445.5 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.1223, allocations: 7.984 kB / 445.5 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.1223, allocations: 8.062 kB / 445.5 MB, free: 9.078 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.146e-05/0.1224, allocations: 107.2 kB / 445.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1224, allocations: 0 / 445.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1226, allocations: 12 kB / 445.6 MB, free: 8.961 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.0004233/0.123, allocations: 0.7281 MB / 446.4 MB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.1231, allocations: 51.97 kB / 446.4 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1232, allocations: 0 / 446.4 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.007e-05/0.1232, allocations: 23.94 kB / 446.4 MB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.1235, allocations: 19.98 kB / 446.5 MB, free: 8.109 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.1249, allocations: 1.535 MB / 448 MB, free: 6.484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.1252, allocations: 0.6965 MB / 448.7 MB, free: 5.762 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.67e-05/0.1252, allocations: 8.438 kB / 448.7 MB, free: 5.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.1253, allocations: 27.42 kB / 448.7 MB, free: 5.727 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1253, allocations: 0 / 448.7 MB, free: 5.727 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03265/0.1579, allocations: 1.993 MB / 450.7 MB, free: 3.727 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002886/0.1583, allocations: 197.6 kB / 450.9 MB, free: 3.465 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/1.879, allocations: 0 / 450.9 MB, free: 3.465 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