Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 111.3 kB / 18.45 MB, free: 4.645 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.001582/0.001582, allocations: 186.2 kB / 19.38 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1865/0.1865, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.307, allocations: 60.82 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002411/0.3095, allocations: 1.528 MB / 0.521 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007411/0.3103, allocations: 497.7 kB / 0.5215 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.411e-05/0.3103, allocations: 4 kB / 0.5215 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.227e-05/0.3104, allocations: 6.344 kB / 0.5215 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.061e-05/0.3105, allocations: 10.81 kB / 0.5215 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001906/0.3106, allocations: 44.34 kB / 0.5216 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.3108, allocations: 85.56 kB / 0.5217 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3109, allocations: 12.19 kB / 0.5217 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.311, allocations: 40.47 kB / 0.5217 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.505e-05/0.3111, allocations: 45.66 kB / 0.5218 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.3111, allocations: 11.38 kB / 0.5218 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.705e-05/0.3111, allocations: 6.656 kB / 0.5218 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.942e-05/0.3112, allocations: 15.66 kB / 0.5218 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.127e-05/0.3112, allocations: 38.48 kB / 0.5218 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.3114, allocations: 77.02 kB / 0.5219 GB, free: 1.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3114, allocations: 0 / 0.5219 GB, free: 1.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3114, allocations: 0 / 0.5219 GB, free: 1.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.3114, allocations: 1.156 kB / 0.5219 GB, free: 1.988 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.0005721/0.312, allocations: 398.2 kB / 0.5223 GB, free: 1.613 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.312, allocations: 9.062 kB / 0.5223 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.137e-05/0.3121, allocations: 18.75 kB / 0.5223 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.227e-05/0.3121, allocations: 177.9 kB / 0.5225 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.3122, allocations: 4.516 kB / 0.5225 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.3122, allocations: 10.8 kB / 0.5225 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.3124, allocations: 94.64 kB / 0.5226 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.3124, allocations: 0 / 0.5226 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.3124, allocations: 6.109 kB / 0.5226 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3124, allocations: 2.281 kB / 0.5226 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.3126, allocations: 42.55 kB / 0.5226 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/0.313, allocations: 322.6 kB / 0.5229 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.3132, allocations: 91.81 kB / 0.523 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.244e-05/0.3133, allocations: 46.23 kB / 0.5231 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.3133, allocations: 3.344 kB / 0.5231 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.3135, allocations: 93.67 kB / 0.5232 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.3135, allocations: 0 / 0.5232 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004125/0.3139, allocations: 190.9 kB / 0.5233 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.314, allocations: 63.75 kB / 0.5234 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.114e-05/0.3141, allocations: 120.9 kB / 0.5235 GB, free: 0.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.3141, allocations: 32.47 kB / 0.5236 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.759e-05/0.3141, allocations: 92.39 kB / 0.5236 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.3142, allocations: 32.2 kB / 0.5237 GB, free: 484 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-05/0.3142, allocations: 38.58 kB / 0.5237 GB, free: 456 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.657e-05/0.3143, allocations: 324.3 kB / 0.524 GB, free: 128 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.258e-05/0.3144, allocations: 37.2 kB / 0.5241 GB, free: 116 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.19e-05/0.3145, allocations: 84.48 kB / 0.5241 GB, free: 48 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.3147, allocations: 126.9 kB / 0.5243 GB, free: 15.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3147, allocations: 0 / 0.5243 GB, free: 15.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002714/0.315, allocations: 154 kB / 0.5244 GB, free: 15.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.315, allocations: 6.812 kB / 0.5244 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.315, allocations: 1.062 kB / 0.5244 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.315, allocations: 6.344 kB / 0.5244 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3151, allocations: 27.17 kB / 0.5244 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.3152, allocations: 10.92 kB / 0.5245 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.183e-05/0.3152, allocations: 9.828 kB / 0.5245 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.3152, allocations: 9.281 kB / 0.5245 GB, free: 15.86 MB / 398.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 0.0001037/0.3154, allocations: 130.1 kB / 0.5246 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.865e-05/0.3154, allocations: 9.031 kB / 0.5246 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.3154, allocations: 11.3 kB / 0.5246 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3154, allocations: 5.406 kB / 0.5246 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3154, allocations: 3.938 kB / 0.5246 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3155, allocations: 4.703 kB / 0.5246 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005235/0.316, allocations: 441.9 kB / 0.525 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.316, allocations: 3.938 kB / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.511e-05/0.3161, allocations: 9.109 kB / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3161, allocations: 0 / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.3161, allocations: 3.094 kB / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.3161, allocations: 5.766 kB / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3161, allocations: 0 / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.3164, allocations: 259.5 kB / 0.5253 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.3165, allocations: 88.38 kB / 0.5254 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.3165, allocations: 2.484 kB / 0.5254 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.3166, allocations: 9.188 kB / 0.5254 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.3167, allocations: 10.27 kB / 0.5254 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.3167, allocations: 6.422 kB / 0.5254 GB, free: 15.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.54e-05/0.3167, allocations: 90.17 kB / 0.5255 GB, free: 14.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3167, allocations: 4 kB / 0.5255 GB, free: 14.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002467/0.317, allocations: 21.98 kB / 0.5255 GB, free: 14.96 MB / 398.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.0001033/0.3171, allocations: 104.2 kB / 0.5256 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002455/0.3174, allocations: 103.3 kB / 0.5257 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3174, allocations: 0 / 0.5257 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.3175, allocations: 53.36 kB / 0.5258 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.3178, allocations: 20.05 kB / 0.5258 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000422/0.3182, allocations: 231.8 kB / 0.526 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.3184, allocations: 0.6963 MB / 0.5267 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.696e-05/0.3185, allocations: 14.91 kB / 0.5267 GB, free: 13.92 MB / 398.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3185, allocations: 0 / 0.5267 GB, free: 13.92 MB / 398.1 MB Notification: Performance of Templates: time 0.002763/0.3212, allocations: 1.217 MB / 0.5279 GB, free: 13.65 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches