Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008892/0.0008892, allocations: 195.9 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007643/0.0007641, allocations: 95.81 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2755/0.2755, allocations: 45.01 MB / 397 MB, free: 31.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002234/0.0002234, allocations: 8 kB / 470.8 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2326, allocations: 63.09 MB / 0.5214 GB, free: 38.38 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001129/0.2338, allocations: 1.247 MB / 0.5226 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006232/0.2344, allocations: 0.7254 MB / 0.5233 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.201e-05/0.2344, allocations: 6.781 kB / 0.5233 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.47e-05/0.2345, allocations: 3.938 kB / 0.5233 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.669e-05/0.2345, allocations: 7.922 kB / 0.5233 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001492/0.2347, allocations: 35.28 kB / 0.5233 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.744e-05/0.2348, allocations: 87.61 kB / 0.5234 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.344e-05/0.2349, allocations: 12.97 kB / 0.5234 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.235, allocations: 46.02 kB / 0.5235 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.853e-05/0.2351, allocations: 33.03 kB / 0.5235 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.2351, allocations: 2.781 kB / 0.5235 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.615e-05/0.2351, allocations: 9.844 kB / 0.5235 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.848e-05/0.2351, allocations: 13.75 kB / 0.5235 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.176e-05/0.2352, allocations: 63.83 kB / 0.5236 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.364e-05/0.2353, allocations: 77.19 kB / 0.5237 GB, free: 36.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2353, allocations: 0 / 0.5237 GB, free: 36.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2353, allocations: 0 / 0.5237 GB, free: 36.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.2353, allocations: 0 / 0.5237 GB, free: 36.62 MB / 378.7 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.0004347/0.2358, allocations: 388.8 kB / 0.524 GB, free: 36.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.2358, allocations: 11.75 kB / 0.5241 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.2359, allocations: 21.53 kB / 0.5241 GB, free: 36.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.029e-05/0.236, allocations: 173.3 kB / 0.5242 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.236, allocations: 7.156 kB / 0.5242 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.236, allocations: 9.906 kB / 0.5243 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.2362, allocations: 89.8 kB / 0.5243 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.2362, allocations: 3.938 kB / 0.5243 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.2362, allocations: 6.875 kB / 0.5243 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.2362, allocations: 0 / 0.5243 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.2364, allocations: 47.52 kB / 0.5244 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003727/0.2367, allocations: 336.6 kB / 0.5247 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.2369, allocations: 88.73 kB / 0.5248 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.375e-05/0.237, allocations: 47.8 kB / 0.5248 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.237, allocations: 0 / 0.5248 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.2372, allocations: 99.48 kB / 0.5249 GB, free: 35.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.2372, allocations: 4 kB / 0.5249 GB, free: 35.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003303/0.2375, allocations: 192.5 kB / 0.5251 GB, free: 35.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.2375, allocations: 57.16 kB / 0.5252 GB, free: 35.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.04e-05/0.2376, allocations: 117 kB / 0.5253 GB, free: 35.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.2376, allocations: 36.11 kB / 0.5253 GB, free: 35.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.428e-05/0.2376, allocations: 95.33 kB / 0.5254 GB, free: 35.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.2377, allocations: 34.16 kB / 0.5255 GB, free: 35.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-06/0.2377, allocations: 7 kB / 0.5255 GB, free: 35.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.618e-05/0.2377, allocations: 325.3 kB / 0.5258 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.019e-05/0.2378, allocations: 35.55 kB / 0.5258 GB, free: 34.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.799e-05/0.2379, allocations: 85.19 kB / 0.5259 GB, free: 34.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.238, allocations: 122.1 kB / 0.526 GB, free: 34.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2381, allocations: 10.31 kB / 0.526 GB, free: 34.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002054/0.2383, allocations: 155.9 kB / 0.5262 GB, free: 34.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.2383, allocations: 8.312 kB / 0.5262 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.2383, allocations: 0 / 0.5262 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2383, allocations: 2.844 kB / 0.5262 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.369e-05/0.2384, allocations: 27.69 kB / 0.5262 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2384, allocations: 10.66 kB / 0.5262 GB, free: 34.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.428e-05/0.2385, allocations: 6.938 kB / 0.5262 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.2385, allocations: 7.625 kB / 0.5262 GB, free: 34.52 MB / 378.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.939e-05/0.2386, allocations: 129.8 kB / 0.5263 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.358e-05/0.2386, allocations: 13.06 kB / 0.5264 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.265e-05/0.2386, allocations: 8.5 kB / 0.5264 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2386, allocations: 2.75 kB / 0.5264 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2386, allocations: 3.938 kB / 0.5264 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2386, allocations: 4 kB / 0.5264 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.239, allocations: 448.9 kB / 0.5268 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.239, allocations: 3.938 kB / 0.5268 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.788e-05/0.2391, allocations: 12.94 kB / 0.5268 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2391, allocations: 3.125 kB / 0.5268 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.2391, allocations: 7.422 kB / 0.5268 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2391, allocations: 4 kB / 0.5268 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2391, allocations: 3.031 kB / 0.5268 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.2393, allocations: 242.7 kB / 0.5271 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.909e-05/0.2393, allocations: 90.92 kB / 0.5272 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.2394, allocations: 6.781 kB / 0.5272 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.555e-05/0.2395, allocations: 13.5 kB / 0.5272 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.526e-05/0.2395, allocations: 13.53 kB / 0.5272 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.2395, allocations: 2.906 kB / 0.5272 GB, free: 33.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.887e-05/0.2396, allocations: 99.31 kB / 0.5273 GB, free: 33.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2396, allocations: 0 / 0.5273 GB, free: 33.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002088/0.2398, allocations: 22.09 kB / 0.5273 GB, free: 33.63 MB / 378.7 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 7.844e-05/0.2399, allocations: 104.1 kB / 0.5274 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.2401, allocations: 110.7 kB / 0.5275 GB, free: 33.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.2401, allocations: 0 / 0.5275 GB, free: 33.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.665e-05/0.2402, allocations: 63.22 kB / 0.5276 GB, free: 33.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.2404, allocations: 17.17 kB / 0.5276 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002932/0.2407, allocations: 225.8 kB / 0.5278 GB, free: 33.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.724e-05/0.2408, allocations: 0.6937 MB / 0.5285 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.922e-05/0.2409, allocations: 12.78 kB / 0.5285 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.769e-05/0.2409, allocations: 13.41 kB / 0.5285 GB, free: 32.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2409, allocations: 7.938 kB / 0.5285 GB, free: 32.59 MB / 378.7 MB Notification: Performance of Templates: time 0.002337/0.2432, allocations: 0.9061 MB / 0.5294 GB, free: 32.5 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches