Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009791/0.0009791, allocations: 195.9 kB / 16.1 MB, free: 5.574 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.192/1.192, allocations: 226.5 MB / 243.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007885/0.0007888, allocations: 103.6 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2829/0.2829, allocations: 44.82 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002356/0.0002356, allocations: 11.94 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2508, allocations: 62.96 MB / 0.516 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001201/0.2521, allocations: 1.237 MB / 0.5172 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006377/0.2527, allocations: 497.3 kB / 0.5176 GB, free: 36.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.002e-05/0.2528, allocations: 7.031 kB / 0.5176 GB, free: 36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.633e-05/0.2528, allocations: 3.938 kB / 0.5176 GB, free: 36 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.417e-05/0.2529, allocations: 7.172 kB / 0.5177 GB, free: 36 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001786/0.2531, allocations: 43.02 kB / 0.5177 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.684e-05/0.2532, allocations: 70.17 kB / 0.5178 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.633e-05/0.2533, allocations: 17.64 kB / 0.5178 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.2534, allocations: 35.09 kB / 0.5178 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.708e-05/0.2535, allocations: 42.69 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.2535, allocations: 5.938 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.95e-05/0.2536, allocations: 6.062 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.2536, allocations: 17.41 kB / 0.5179 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.066e-05/0.2537, allocations: 59.08 kB / 0.5179 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.116e-05/0.2538, allocations: 50.39 kB / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2538, allocations: 0 / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2538, allocations: 0 / 0.518 GB, free: 35.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.2538, allocations: 0 / 0.518 GB, free: 35.82 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.0005069/0.2543, allocations: 399.9 kB / 0.5184 GB, free: 35.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2543, allocations: 7.156 kB / 0.5184 GB, free: 35.44 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.767e-05/0.2544, allocations: 36.98 kB / 0.5184 GB, free: 35.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.2545, allocations: 23.88 kB / 0.5184 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.657e-05/0.2546, allocations: 181.3 kB / 0.5186 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.2546, allocations: 7.375 kB / 0.5186 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.2547, allocations: 10 kB / 0.5186 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.2548, allocations: 83.25 kB / 0.5187 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2548, allocations: 0 / 0.5187 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.2549, allocations: 7.125 kB / 0.5187 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2549, allocations: 3.984 kB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.255, allocations: 49.72 kB / 0.5188 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.2554, allocations: 332 kB / 0.5191 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.2556, allocations: 91.58 kB / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.793e-05/0.2557, allocations: 45.16 kB / 0.5192 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.2557, allocations: 6.688 kB / 0.5192 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.2559, allocations: 96.45 kB / 0.5193 GB, free: 34.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.2559, allocations: 0 / 0.5193 GB, free: 34.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003637/0.2563, allocations: 201.1 kB / 0.5195 GB, free: 34.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.2563, allocations: 54.25 kB / 0.5196 GB, free: 34.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.454e-05/0.2564, allocations: 116.2 kB / 0.5197 GB, free: 34.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.2564, allocations: 32.64 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.369e-05/0.2564, allocations: 94.53 kB / 0.5198 GB, free: 34.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.2565, allocations: 40.66 kB / 0.5198 GB, free: 34.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.265e-06/0.2565, allocations: 4 kB / 0.5198 GB, free: 34.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.23e-05/0.2565, allocations: 324.7 kB / 0.5201 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.747e-05/0.2566, allocations: 38.02 kB / 0.5202 GB, free: 33.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.631e-05/0.2567, allocations: 76.06 kB / 0.5202 GB, free: 33.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.2569, allocations: 131.5 kB / 0.5204 GB, free: 33.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2569, allocations: 0 / 0.5204 GB, free: 33.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002257/0.2571, allocations: 166.1 kB / 0.5205 GB, free: 33.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.2571, allocations: 5.406 kB / 0.5205 GB, free: 33.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.2572, allocations: 2.344 kB / 0.5205 GB, free: 33.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2572, allocations: 2.531 kB / 0.5205 GB, free: 33.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.2573, allocations: 22.78 kB / 0.5206 GB, free: 33.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.2573, allocations: 7.031 kB / 0.5206 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.544e-05/0.2573, allocations: 9.531 kB / 0.5206 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.2574, allocations: 9.484 kB / 0.5206 GB, free: 33.68 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 6.73e-05/0.2574, allocations: 131.3 kB / 0.5207 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.526e-05/0.2575, allocations: 13.44 kB / 0.5207 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.287e-05/0.2575, allocations: 8.5 kB / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2575, allocations: 6.812 kB / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2575, allocations: 0 / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2575, allocations: 3.375 kB / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003881/0.2579, allocations: 454 kB / 0.5212 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2579, allocations: 7.938 kB / 0.5212 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.021e-05/0.258, allocations: 12.75 kB / 0.5212 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.258, allocations: 3.938 kB / 0.5212 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.258, allocations: 5.891 kB / 0.5212 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.258, allocations: 0 / 0.5212 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.258, allocations: 0 / 0.5212 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.2582, allocations: 250.3 kB / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.954e-05/0.2583, allocations: 91.94 kB / 0.5215 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.2583, allocations: 7 kB / 0.5215 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.941e-05/0.2584, allocations: 8.938 kB / 0.5215 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.2585, allocations: 8.984 kB / 0.5216 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.2585, allocations: 10.28 kB / 0.5216 GB, free: 32.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.876e-05/0.2585, allocations: 94.39 kB / 0.5217 GB, free: 32.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2585, allocations: 4 kB / 0.5217 GB, free: 32.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002234/0.2587, allocations: 17.53 kB / 0.5217 GB, free: 32.78 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.0003727/0.2591, allocations: 0.793 MB / 0.5224 GB, free: 32.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.2593, allocations: 110.3 kB / 0.5226 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2593, allocations: 0 / 0.5226 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.125e-05/0.2594, allocations: 51.23 kB / 0.5226 GB, free: 32.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.2597, allocations: 13.17 kB / 0.5226 GB, free: 32.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008131/0.2605, allocations: 0.7021 MB / 0.5233 GB, free: 31.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.613e-05/0.2606, allocations: 0.6904 MB / 0.524 GB, free: 30.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.2607, allocations: 32.72 kB / 0.524 GB, free: 30.78 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2607, allocations: 0 / 0.524 GB, free: 30.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.419/2.68, allocations: 1.382 MB / 0.5254 GB, free: 30.67 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_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.f,sine.offset,sine.phase,sine.startTime,sine.y,time,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.sampleTrigger,zeroOrderHold.startTime,zeroOrderHold.u,zeroOrderHold.y,zeroOrderHold.ySample