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: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 115.9 kB / 17.08 MB, free: 5.832 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.001354/0.001354, allocations: 194.4 kB / 18.01 MB, free: 4.965 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.263/1.263, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.1965/0.1965, allocations: 43.53 MB / 314.8 MB, free: 464 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.001409/0.001409, allocations: 67.89 kB / 442.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1125, allocations: 57.78 MB / 0.4885 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002853/0.1154, allocations: 1.618 MB / 0.4901 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008844/0.1163, allocations: 0.5113 MB / 0.4906 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.61e-05/0.1164, allocations: 8 kB / 0.4906 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.1165, allocations: 11.86 kB / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.067e-05/0.1166, allocations: 11.86 kB / 0.4906 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.1168, allocations: 39.91 kB / 0.4907 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.117, allocations: 83.7 kB / 0.4907 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.1171, allocations: 32.19 kB / 0.4908 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.478e-05/0.1172, allocations: 27.92 kB / 0.4908 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.688e-05/0.1173, allocations: 35.78 kB / 0.4908 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.1173, allocations: 8 kB / 0.4908 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.221e-05/0.1173, allocations: 4 kB / 0.4909 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.34e-05/0.1173, allocations: 19.92 kB / 0.4909 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.737e-05/0.1174, allocations: 35.8 kB / 0.4909 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.1175, allocations: 75.67 kB / 0.491 GB, free: 9.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1175, allocations: 0 / 0.491 GB, free: 9.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1175, allocations: 3.984 kB / 0.491 GB, free: 9.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1176, allocations: 0 / 0.491 GB, free: 9.305 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.0005539/0.1181, allocations: 387.1 kB / 0.4914 GB, free: 8.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1182, allocations: 15.89 kB / 0.4914 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.1182, allocations: 8.844 kB / 0.4914 GB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.1185, allocations: 200.2 kB / 0.4916 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1185, allocations: 4.312 kB / 0.4916 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.1185, allocations: 12.38 kB / 0.4916 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.1187, allocations: 77.62 kB / 0.4917 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.1187, allocations: 3.984 kB / 0.4917 GB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.1187, allocations: 12 kB / 0.4917 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.1187, allocations: 0 / 0.4917 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.007e-05/0.1188, allocations: 31.98 kB / 0.4917 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005783/0.1194, allocations: 352.4 kB / 0.492 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.1195, allocations: 46.61 kB / 0.4921 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.509e-05/0.1196, allocations: 28.77 kB / 0.4921 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.1196, allocations: 0 / 0.4921 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001187/0.1197, allocations: 71.38 kB / 0.4922 GB, free: 7.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.1197, allocations: 0 / 0.4922 GB, free: 7.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002189/0.12, allocations: 89.52 kB / 0.4923 GB, free: 7.824 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.12, allocations: 55.39 kB / 0.4923 GB, free: 7.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.1201, allocations: 148.3 kB / 0.4925 GB, free: 7.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.1202, allocations: 37.7 kB / 0.4925 GB, free: 7.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.1202, allocations: 92.14 kB / 0.4926 GB, free: 7.469 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.359e-05/0.1203, allocations: 15.7 kB / 0.4926 GB, free: 7.453 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.182e-05/0.1203, allocations: 25.72 kB / 0.4926 GB, free: 7.422 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1204, allocations: 322.8 kB / 0.4929 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.031e-05/0.1205, allocations: 15.98 kB / 0.4929 GB, free: 7.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.303e-05/0.1205, allocations: 34.58 kB / 0.493 GB, free: 7.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.655e-05/0.1206, allocations: 62.48 kB / 0.493 GB, free: 6.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1206, allocations: 0 / 0.493 GB, free: 6.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001318/0.1208, allocations: 85.53 kB / 0.4931 GB, free: 6.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.1208, allocations: 4 kB / 0.4931 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1208, allocations: 4 kB / 0.4931 GB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1208, allocations: 3.938 kB / 0.4931 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.342e-05/0.1209, allocations: 8 kB / 0.4931 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1209, allocations: 4.062 kB / 0.4931 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.562e-05/0.121, allocations: 12.06 kB / 0.4932 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.121, allocations: 4 kB / 0.4932 GB, free: 6.84 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 8.691e-05/0.1211, allocations: 129.2 kB / 0.4933 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-05/0.1211, allocations: 7.906 kB / 0.4933 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.543e-05/0.1212, allocations: 20.64 kB / 0.4933 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1212, allocations: 0 / 0.4933 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1212, allocations: 0 / 0.4933 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1212, allocations: 4 kB / 0.4933 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003381/0.1215, allocations: 350.4 kB / 0.4936 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1215, allocations: 4 kB / 0.4936 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.845e-05/0.1216, allocations: 7.938 kB / 0.4937 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1216, allocations: 0 / 0.4937 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.1216, allocations: 0 / 0.4937 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1216, allocations: 0 / 0.4937 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1216, allocations: 192 / 0.4937 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.1218, allocations: 195.4 kB / 0.4938 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-05/0.1219, allocations: 84.95 kB / 0.4939 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.1219, allocations: 11.95 kB / 0.4939 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-05/0.122, allocations: 8 kB / 0.4939 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.1221, allocations: 7.984 kB / 0.4939 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.1221, allocations: 0 / 0.4939 GB, free: 5.926 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.986e-05/0.1222, allocations: 103.3 kB / 0.494 GB, free: 5.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1222, allocations: 0 / 0.494 GB, free: 5.824 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.1224, allocations: 19.94 kB / 0.4941 GB, free: 5.805 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 9e-05/0.1225, allocations: 107.2 kB / 0.4942 GB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.1226, allocations: 48.52 kB / 0.4942 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1227, allocations: 0 / 0.4942 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.146e-05/0.1227, allocations: 23.94 kB / 0.4942 GB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.123, allocations: 26.67 kB / 0.4943 GB, free: 5.598 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005633/0.1236, allocations: 237.2 kB / 0.4945 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.1239, allocations: 0.7002 MB / 0.4952 GB, free: 4.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.1239, allocations: 11.44 kB / 0.4952 GB, free: 4.598 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.124, allocations: 0 / 0.4952 GB, free: 4.598 MB / 382.1 MB Notification: Performance of Templates: time 0.00282/0.1268, allocations: 1.16 MB / 0.4963 GB, free: 3.438 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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