Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000792/0.000792, allocations: 175.9 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.123/1.123, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006329/0.0006329, allocations: 93.33 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2629/0.2629, allocations: 43.56 MB / 363.1 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003302, allocations: 12 kB / 432.1 MB, free: 5.488 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08537/0.08572, allocations: 58.84 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001385/0.08713, allocations: 1.236 MB / 492.2 MB, free: 9.312 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007258/0.08788, allocations: 0.4999 MB / 492.7 MB, free: 8.805 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.795e-05/0.08794, allocations: 0 / 492.7 MB, free: 8.805 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.08796, allocations: 3.984 kB / 492.7 MB, free: 8.801 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.142e-05/0.08804, allocations: 7.875 kB / 492.7 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001657/0.08821, allocations: 31.95 kB / 492.7 MB, free: 8.762 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.443e-05/0.08832, allocations: 75.72 kB / 492.8 MB, free: 8.688 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.735e-05/0.08842, allocations: 19.95 kB / 492.8 MB, free: 8.668 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.08854, allocations: 31.92 kB / 492.8 MB, free: 8.637 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.08862, allocations: 35.84 kB / 492.9 MB, free: 8.602 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.08864, allocations: 3.984 kB / 492.9 MB, free: 8.598 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.319e-05/0.08866, allocations: 4 kB / 492.9 MB, free: 8.594 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.843e-05/0.0887, allocations: 15.92 kB / 492.9 MB, free: 8.578 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.269e-05/0.08875, allocations: 57.56 kB / 492.9 MB, free: 8.516 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.619e-05/0.08885, allocations: 48.17 kB / 493 MB, free: 8.469 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.08886, allocations: 0 / 493 MB, free: 8.469 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08886, allocations: 0 / 493 MB, free: 8.469 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.08887, allocations: 0 / 493 MB, free: 8.469 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.0005097/0.08939, allocations: 395.2 kB / 493.4 MB, free: 8.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.08943, allocations: 8.031 kB / 493.4 MB, free: 8.027 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.08948, allocations: 46.67 kB / 493.4 MB, free: 7.973 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.08951, allocations: 8.844 kB / 493.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.08962, allocations: 172.2 kB / 493.6 MB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.08965, allocations: 12.38 kB / 493.6 MB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.08967, allocations: 16.3 kB / 493.6 MB, free: 7.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.08985, allocations: 85.78 kB / 493.7 MB, free: 7.641 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.08987, allocations: 0 / 493.7 MB, free: 7.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.0899, allocations: 7.984 kB / 493.7 MB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.08991, allocations: 0 / 493.7 MB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.09003, allocations: 55.86 kB / 493.8 MB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004727/0.09052, allocations: 332.7 kB / 494.1 MB, free: 7.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.09069, allocations: 86.55 kB / 494.2 MB, free: 7.109 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.507e-05/0.09079, allocations: 52.81 kB / 494.2 MB, free: 7.055 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.09082, allocations: 8 kB / 494.2 MB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.09101, allocations: 99.3 kB / 494.3 MB, free: 6.938 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.09103, allocations: 0 / 494.3 MB, free: 6.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003922/0.09142, allocations: 189.7 kB / 494.5 MB, free: 6.746 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.09148, allocations: 63.39 kB / 494.6 MB, free: 6.672 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.052e-05/0.09156, allocations: 113.8 kB / 494.7 MB, free: 6.551 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.09158, allocations: 29.7 kB / 494.7 MB, free: 6.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.478e-05/0.09163, allocations: 92.41 kB / 494.8 MB, free: 6.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.094e-05/0.09167, allocations: 35.48 kB / 494.9 MB, free: 6.387 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-06/0.09168, allocations: 8 kB / 494.9 MB, free: 6.379 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.472e-05/0.09177, allocations: 322.8 kB / 495.2 MB, free: 6.055 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-05/0.09186, allocations: 47.97 kB / 495.2 MB, free: 6.008 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.09197, allocations: 73.12 kB / 495.3 MB, free: 5.918 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.09215, allocations: 125.2 kB / 495.4 MB, free: 5.777 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.09216, allocations: 0 / 495.4 MB, free: 5.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002539/0.09242, allocations: 165.5 kB / 495.6 MB, free: 5.609 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.09244, allocations: 4 kB / 495.6 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.09245, allocations: 0 / 495.6 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.09247, allocations: 4 kB / 495.6 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.09257, allocations: 31.86 kB / 495.6 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.09259, allocations: 4 kB / 495.6 MB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.718e-05/0.09265, allocations: 7.938 kB / 495.6 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.09267, allocations: 8 kB / 495.6 MB, free: 5.551 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.09279, allocations: 132 kB / 495.8 MB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.09281, allocations: 11.91 kB / 495.8 MB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.09284, allocations: 12.5 kB / 495.8 MB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.09285, allocations: 3.938 kB / 495.8 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.09286, allocations: 0 / 495.8 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.09287, allocations: 8.359 kB / 495.8 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004696/0.09334, allocations: 450.3 kB / 496.2 MB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.09336, allocations: 3.938 kB / 496.2 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.181e-05/0.09342, allocations: 8 kB / 496.3 MB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.09343, allocations: 3.938 kB / 496.3 MB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.09344, allocations: 7.984 kB / 496.3 MB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.09345, allocations: 4 kB / 496.3 MB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.09346, allocations: 0 / 496.3 MB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.09375, allocations: 255.3 kB / 496.5 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.222e-05/0.09379, allocations: 92.89 kB / 496.6 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.09382, allocations: 4 kB / 496.6 MB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.867e-05/0.09392, allocations: 7.984 kB / 496.6 MB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/0.09396, allocations: 11.98 kB / 496.6 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.09399, allocations: 4 kB / 496.6 MB, free: 4.457 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.697e-05/0.09404, allocations: 91.27 kB / 496.7 MB, free: 4.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09404, allocations: 4 kB / 496.7 MB, free: 4.363 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002243/0.09427, allocations: 24 kB / 496.8 MB, free: 4.34 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 (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 0.0005141/0.09479, allocations: 0.7988 MB / 497.5 MB, free: 3.512 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002128/0.09502, allocations: 108 kB / 497.7 MB, free: 3.406 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.09503, allocations: 4 kB / 497.7 MB, free: 3.402 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.09514, allocations: 55.91 kB / 497.7 MB, free: 3.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.09538, allocations: 12 kB / 497.7 MB, free: 3.336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009574/0.09635, allocations: 0.6895 MB / 498.4 MB, free: 2.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.09657, allocations: 0.6926 MB / 499.1 MB, free: 1.852 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.092e-05/0.09663, allocations: 27.42 kB / 499.1 MB, free: 1.828 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09663, allocations: 0 / 499.1 MB, free: 1.828 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.274/2.37, allocations: 1.394 MB / 0.4888 GB, free: 448 kB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.tSample,firstOrderHold.uSample,zeroOrderHold.firstTrigger,zeroOrderHold.ySample Variables in the result:firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.samplePeriod,firstOrderHold.sampleTrigger,firstOrderHold.startTime,firstOrderHold.tSample,firstOrderHold.u,firstOrderHold.uSample,firstOrderHold.y,period,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.sampleTrigger,zeroOrderHold.startTime,zeroOrderHold.u,zeroOrderHold.y,zeroOrderHold.ySample