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.001628/0.001628, allocations: 111.4 kB / 16.41 MB, free: 6.445 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.001681/0.001681, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.384/1.384, allocations: 205.1 MB / 223.2 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2142/0.2142, allocations: 43.52 MB / 314.1 MB, free: 472 kB / 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.002132/0.002132, allocations: 71.91 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1108, allocations: 57.78 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003184/0.1141, allocations: 1.613 MB / 0.489 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.1151, allocations: 0.5229 MB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.1152, allocations: 4 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.1154, allocations: 7.875 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.128e-05/0.1154, allocations: 11.86 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.1157, allocations: 39.89 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.1158, allocations: 83.77 kB / 0.4896 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.116, allocations: 36.11 kB / 0.4897 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.513e-05/0.1161, allocations: 35.78 kB / 0.4897 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.822e-05/0.1162, allocations: 27.86 kB / 0.4897 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.1162, allocations: 8 kB / 0.4897 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.478e-05/0.1162, allocations: 4 kB / 0.4897 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.239e-05/0.1162, allocations: 19.92 kB / 0.4897 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.672e-05/0.1163, allocations: 35.8 kB / 0.4898 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.1165, allocations: 75.66 kB / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1165, allocations: 0 / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1165, allocations: 4 kB / 0.4899 GB, free: 9.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.1165, allocations: 0 / 0.4899 GB, free: 9.785 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.0006137/0.1172, allocations: 391.1 kB / 0.4902 GB, free: 9.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1172, allocations: 15.89 kB / 0.4902 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.016e-05/0.1173, allocations: 34.75 kB / 0.4903 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.621e-05/0.1173, allocations: 20.83 kB / 0.4903 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.1176, allocations: 188.2 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.1176, allocations: 16.36 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.1176, allocations: 12.38 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.1178, allocations: 73.73 kB / 0.4906 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1178, allocations: 0 / 0.4906 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.1178, allocations: 4 kB / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1179, allocations: 4 kB / 0.4906 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.339e-05/0.1179, allocations: 35.92 kB / 0.4906 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000588/0.1185, allocations: 360.5 kB / 0.491 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.1187, allocations: 50.55 kB / 0.491 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.548e-05/0.1187, allocations: 12.89 kB / 0.491 GB, free: 8.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.1187, allocations: 4 kB / 0.491 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.1189, allocations: 67.38 kB / 0.4911 GB, free: 8.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.1189, allocations: 3.938 kB / 0.4911 GB, free: 8.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.000228/0.1191, allocations: 97.55 kB / 0.4912 GB, free: 8.242 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.1192, allocations: 51.41 kB / 0.4912 GB, free: 8.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.1193, allocations: 140.5 kB / 0.4914 GB, free: 8.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.1193, allocations: 25.7 kB / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.904e-05/0.1194, allocations: 100.1 kB / 0.4915 GB, free: 7.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.1194, allocations: 23.94 kB / 0.4915 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.742e-05/0.1195, allocations: 29.7 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1197, allocations: 318.8 kB / 0.4918 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.097e-05/0.1197, allocations: 19.98 kB / 0.4919 GB, free: 7.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.817e-05/0.1198, allocations: 42.5 kB / 0.4919 GB, free: 7.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.82e-05/0.1199, allocations: 42.58 kB / 0.4919 GB, free: 7.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1199, allocations: 0 / 0.4919 GB, free: 7.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001455/0.12, allocations: 93.91 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.12, allocations: 4 kB / 0.492 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1201, allocations: 3.938 kB / 0.492 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1201, allocations: 7.938 kB / 0.492 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.083e-05/0.1201, allocations: 12 kB / 0.4921 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.1202, allocations: 12.05 kB / 0.4921 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.21e-05/0.1202, allocations: 4 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.1203, allocations: 4 kB / 0.4921 GB, free: 7.258 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 0.000111/0.1204, allocations: 117.8 kB / 0.4922 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.725e-05/0.1204, allocations: 11.98 kB / 0.4922 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.1204, allocations: 20.64 kB / 0.4922 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.1204, allocations: 4 kB / 0.4922 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1205, allocations: 0 / 0.4922 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1205, allocations: 0 / 0.4922 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003963/0.1209, allocations: 346.3 kB / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1209, allocations: 4 kB / 0.4926 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.676e-05/0.1209, allocations: 0 / 0.4926 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1209, allocations: 4.188 kB / 0.4926 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.121, allocations: 4 kB / 0.4926 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.121, allocations: 7.938 kB / 0.4926 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.121, allocations: 3.984 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.1212, allocations: 199.3 kB / 0.4928 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-05/0.1213, allocations: 85.05 kB / 0.4928 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.1213, allocations: 4.031 kB / 0.4929 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.293e-05/0.1214, allocations: 0 / 0.4929 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/0.1215, allocations: 11.98 kB / 0.4929 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.1215, allocations: 8.062 kB / 0.4929 GB, free: 6.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.358e-05/0.1216, allocations: 107.2 kB / 0.493 GB, free: 6.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1216, allocations: 0 / 0.493 GB, free: 6.234 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000225/0.1218, allocations: 12 kB / 0.493 GB, free: 6.223 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.0005333/0.1223, allocations: 0.724 MB / 0.4937 GB, free: 5.473 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.1225, allocations: 55.97 kB / 0.4937 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1225, allocations: 0 / 0.4937 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.674e-05/0.1226, allocations: 20 kB / 0.4938 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.1229, allocations: 18.8 kB / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.1245, allocations: 1.525 MB / 0.4953 GB, free: 3.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.1249, allocations: 0.6963 MB / 0.496 GB, free: 3.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.721e-05/0.1249, allocations: 8.438 kB / 0.496 GB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.514e-05/0.125, allocations: 27.42 kB / 0.496 GB, free: 3.008 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.125, allocations: 0 / 0.496 GB, free: 3.008 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.1493, allocations: 2.235 MB / 0.4982 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.839/7.988, allocations: 9.016 kB / 0.4982 GB, free: 0.7578 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches