Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 104.2 kB / 17.03 MB, free: 6.129 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.001766/0.001766, allocations: 196.1 kB / 17.96 MB, free: 5.215 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.428/1.428, allocations: 205.1 MB / 223.8 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.2043/0.2043, allocations: 43.52 MB / 314.7 MB, free: 484 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.00152/0.00152, allocations: 67.12 kB / 384.2 MB, free: 56.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09547/0.09701, allocations: 57.79 MB / 442 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002742/0.09978, allocations: 1.514 MB / 443.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008286/0.1006, allocations: 0.5252 MB / 444 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.458e-05/0.1007, allocations: 0 / 444 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.809e-05/0.1008, allocations: 11.94 kB / 444 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.904e-05/0.1009, allocations: 11.86 kB / 444 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002101/0.1011, allocations: 39.89 kB / 444.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.1012, allocations: 83.77 kB / 444.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.1013, allocations: 23.89 kB / 444.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.1014, allocations: 39.86 kB / 444.2 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.665e-05/0.1015, allocations: 35.83 kB / 444.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.1015, allocations: 8 kB / 444.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.537e-05/0.1016, allocations: 12 kB / 444.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.914e-05/0.1016, allocations: 27.84 kB / 444.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.912e-05/0.1017, allocations: 31.86 kB / 444.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.1018, allocations: 79.66 kB / 444.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1018, allocations: 0 / 444.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1018, allocations: 0 / 444.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1018, allocations: 0 / 444.4 MB, free: 3.695 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005629/0.1024, allocations: 403.2 kB / 444.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1024, allocations: 11.89 kB / 444.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.208e-05/0.1025, allocations: 8.844 kB / 444.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.1026, allocations: 184.1 kB / 445 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.1026, allocations: 8.375 kB / 445 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.1026, allocations: 8.375 kB / 445 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.1028, allocations: 85.95 kB / 445.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.1028, allocations: 0 / 445.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1028, allocations: 4 kB / 445.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1028, allocations: 8 kB / 445.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.103, allocations: 47.91 kB / 445.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000489/0.1034, allocations: 320.8 kB / 445.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.1036, allocations: 86.55 kB / 445.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.754e-05/0.1037, allocations: 40.84 kB / 445.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.1037, allocations: 4 kB / 445.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001785/0.1039, allocations: 103.4 kB / 445.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/0.1039, allocations: 0 / 445.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000373/0.1043, allocations: 185.6 kB / 445.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.1044, allocations: 59.41 kB / 445.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.64e-05/0.1044, allocations: 125.7 kB / 446 MB, free: 1.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.1045, allocations: 37.7 kB / 446.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.1045, allocations: 92.34 kB / 446.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.1045, allocations: 31.98 kB / 446.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.84e-05/0.1046, allocations: 37.7 kB / 446.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.448e-05/0.1046, allocations: 322.8 kB / 446.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.316e-05/0.1047, allocations: 39.92 kB / 446.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.913e-05/0.1048, allocations: 85.06 kB / 446.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.105, allocations: 125 kB / 446.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.105, allocations: 0 / 446.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002232/0.1052, allocations: 157.4 kB / 447 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.1052, allocations: 4 kB / 447 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1053, allocations: 7.984 kB / 447 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1053, allocations: 0 / 447 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.1054, allocations: 23.88 kB / 447 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.1054, allocations: 7.984 kB / 447 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.1055, allocations: 20 kB / 447 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.1055, allocations: 4 kB / 447 MB, free: 0.8047 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.478e-05/0.1056, allocations: 136 kB / 447.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.1056, allocations: 7.906 kB / 447.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.1056, allocations: 16.48 kB / 447.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1056, allocations: 3.938 kB / 447.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1056, allocations: 0 / 447.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1057, allocations: 0 / 447.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004231/0.1061, allocations: 446.4 kB / 447.6 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.1061, allocations: 3.938 kB / 447.6 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.179e-05/0.1062, allocations: 7.984 kB / 447.6 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1062, allocations: 4 kB / 447.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.1062, allocations: 4 kB / 447.6 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1062, allocations: 0 / 447.6 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1062, allocations: 0 / 447.6 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003207/0.1065, allocations: 247.4 kB / 447.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.855e-05/0.1066, allocations: 88.95 kB / 448 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.1066, allocations: 11.94 kB / 448 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.1067, allocations: 11.98 kB / 448 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.1068, allocations: 11.98 kB / 448 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.1068, allocations: 4 kB / 448 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.807e-05/0.1069, allocations: 91.27 kB / 448.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1069, allocations: 0 / 448.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002553/0.1071, allocations: 20 kB / 448.1 MB, free: 15.61 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001018/0.1072, allocations: 107.5 kB / 448.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000247/0.1075, allocations: 115.7 kB / 448.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1075, allocations: 0 / 448.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.1076, allocations: 47.98 kB / 448.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.1079, allocations: 15.92 kB / 448.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004168/0.1083, allocations: 203.8 kB / 448.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.1086, allocations: 0.6924 MB / 449.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.095e-05/0.1086, allocations: 12.88 kB / 449.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.519e-05/0.1086, allocations: 11.44 kB / 449.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1086, allocations: 0 / 449.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Templates: time 0.003282/0.1119, allocations: 1.007 MB / 450.3 MB, free: 13.35 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches