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.0009612/0.0009612, allocations: 95.34 kB / 15.68 MB, free: 488 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.0008795/0.0008796, allocations: 177.9 kB / 16.57 MB, free: 6.379 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.228/1.228, allocations: 205.4 MB / 222.7 MB, free: 5.668 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.2892/0.2892, allocations: 43.53 MB / 314.5 MB, free: 9.039 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.0006964/0.0006965, allocations: 12 kB / 383.9 MB, free: 8.289 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1041, allocations: 58.87 MB / 442.7 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001349/0.1054, allocations: 1.225 MB / 444 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006396/0.1061, allocations: 496.1 kB / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.899e-05/0.1061, allocations: 0 / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.797e-05/0.1062, allocations: 3.938 kB / 444.5 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.125e-05/0.1062, allocations: 19.97 kB / 444.5 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001504/0.1064, allocations: 35.83 kB / 444.5 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.39e-05/0.1065, allocations: 47.94 kB / 444.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.246e-05/0.1066, allocations: 11.98 kB / 444.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.874e-05/0.1067, allocations: 43.83 kB / 444.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.849e-05/0.1067, allocations: 31.89 kB / 444.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.1068, allocations: 4 kB / 444.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.416e-05/0.1068, allocations: 4 kB / 444.7 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.988e-05/0.1068, allocations: 15.92 kB / 444.7 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.091e-05/0.1069, allocations: 41.64 kB / 444.7 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.009e-05/0.1069, allocations: 56.11 kB / 444.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.1069, allocations: 0 / 444.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.107, allocations: 3.938 kB / 444.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.107, allocations: 0 / 444.8 MB, free: 11.27 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005307/0.1075, allocations: 387.1 kB / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.1075, allocations: 8.031 kB / 445.2 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.348e-05/0.1076, allocations: 15.86 kB / 445.2 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.1077, allocations: 170.9 kB / 445.3 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.1077, allocations: 8 kB / 445.3 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.1077, allocations: 7.984 kB / 445.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.1079, allocations: 89.58 kB / 445.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.1079, allocations: 4 kB / 445.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.108, allocations: 0 / 445.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.108, allocations: 0 / 445.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.1081, allocations: 55.92 kB / 445.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.1086, allocations: 324.8 kB / 445.8 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.1088, allocations: 94.47 kB / 445.9 MB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.1088, allocations: 4 kB / 445.9 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.109, allocations: 99.27 kB / 446 MB, free: 9.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.109, allocations: 0 / 446 MB, free: 9.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003825/0.1094, allocations: 185.7 kB / 446.2 MB, free: 9.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.1094, allocations: 63.39 kB / 446.3 MB, free: 9.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.739e-05/0.1095, allocations: 129.8 kB / 446.4 MB, free: 9.461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.1095, allocations: 29.7 kB / 446.4 MB, free: 9.426 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.034e-05/0.1096, allocations: 92.41 kB / 446.5 MB, free: 9.332 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.1096, allocations: 31.56 kB / 446.5 MB, free: 9.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.1096, allocations: 4 kB / 446.5 MB, free: 9.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.946e-05/0.1097, allocations: 322.8 kB / 446.9 MB, free: 8.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.938e-05/0.1098, allocations: 40.34 kB / 446.9 MB, free: 8.934 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.653e-05/0.1099, allocations: 77.88 kB / 447 MB, free: 8.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.134e-05/0.11, allocations: 48.16 kB / 447 MB, free: 8.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.11, allocations: 0 / 447 MB, free: 8.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002514/0.1103, allocations: 161.6 kB / 447.2 MB, free: 8.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.1103, allocations: 4 kB / 447.2 MB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1103, allocations: 4 kB / 447.2 MB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1103, allocations: 3.953 kB / 447.2 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.1104, allocations: 27.92 kB / 447.2 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.1105, allocations: 0 / 447.2 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.232e-05/0.1105, allocations: 15.84 kB / 447.2 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.1105, allocations: 11.98 kB / 447.2 MB, free: 8.562 MB / 382.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 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.5e-05/0.1106, allocations: 140 kB / 447.4 MB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.1107, allocations: 7.906 kB / 447.4 MB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.496e-05/0.1107, allocations: 8.5 kB / 447.4 MB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1107, allocations: 7.953 kB / 447.4 MB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1107, allocations: 0 / 447.4 MB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1107, allocations: 7.922 kB / 447.4 MB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004591/0.1112, allocations: 434.9 kB / 447.8 MB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1112, allocations: 8 kB / 447.8 MB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.397e-05/0.1113, allocations: 12 kB / 447.9 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1113, allocations: 3.953 kB / 447.9 MB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.1113, allocations: 7.984 kB / 447.9 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1113, allocations: 0 / 447.9 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1113, allocations: 0 / 447.9 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002857/0.1116, allocations: 263.5 kB / 448.1 MB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/0.1116, allocations: 89.33 kB / 448.2 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.1117, allocations: 7.953 kB / 448.2 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1118, allocations: 11.98 kB / 448.2 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.367e-05/0.1118, allocations: 7.984 kB / 448.2 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.1119, allocations: 7.938 kB / 448.2 MB, free: 7.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.176e-05/0.1119, allocations: 91.27 kB / 448.3 MB, free: 7.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1119, allocations: 0 / 448.3 MB, free: 7.375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.1121, allocations: 24 kB / 448.4 MB, free: 7.352 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.243e-05/0.1122, allocations: 99.25 kB / 448.5 MB, free: 7.242 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002189/0.1125, allocations: 111.9 kB / 448.6 MB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1125, allocations: 4 kB / 448.6 MB, free: 7.129 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.1126, allocations: 52.28 kB / 448.6 MB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00017/0.1128, allocations: 8 kB / 448.6 MB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003528/0.1131, allocations: 229.2 kB / 448.8 MB, free: 6.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.1134, allocations: 0.6965 MB / 449.5 MB, free: 6.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.671e-05/0.1134, allocations: 12.88 kB / 449.6 MB, free: 6.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.939e-05/0.1134, allocations: 15.44 kB / 449.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1134, allocations: 0 / 449.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of Templates: time 0.002526/0.116, allocations: 0.8669 MB / 450.4 MB, free: 5.199 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches