Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.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.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00126/0.00126, allocations: 198.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 243.4 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000703/0.000703, allocations: 98.42 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.284/0.284, allocations: 44.81 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002397/0.0002397, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2635, allocations: 62.97 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.001644/0.2652, allocations: 1.746 MB / 0.5177 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.2665, allocations: 1.239 MB / 0.5189 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.08e-05/0.2665, allocations: 9.75 kB / 0.5189 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.227e-05/0.2666, allocations: 14.53 kB / 0.5189 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.132e-05/0.2667, allocations: 25.8 kB / 0.5189 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.267, allocations: 150.9 kB / 0.5191 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.2671, allocations: 168.4 kB / 0.5192 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.2673, allocations: 98.33 kB / 0.5193 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.2674, allocations: 56.47 kB / 0.5194 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.796e-05/0.2675, allocations: 59.55 kB / 0.5194 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.2675, allocations: 9.75 kB / 0.5194 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.2677, allocations: 137.5 kB / 0.5196 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.038e-05/0.2678, allocations: 25.11 kB / 0.5196 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.272e-05/0.2678, allocations: 99.44 kB / 0.5197 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.268, allocations: 217.4 kB / 0.5199 GB, free: 34.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2681, allocations: 4 kB / 0.5199 GB, free: 34.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2681, allocations: 6.719 kB / 0.5199 GB, free: 34.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.2681, allocations: 0 / 0.5199 GB, free: 34.54 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0004039/0.2685, allocations: 484.6 kB / 0.5204 GB, free: 34.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.2685, allocations: 10.72 kB / 0.5204 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.842e-05/0.2686, allocations: 87.94 kB / 0.5205 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008028/0.2694, allocations: 88.42 kB / 0.5205 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.672e-05/0.2695, allocations: 188.2 kB / 0.5207 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.2696, allocations: 24.03 kB / 0.5207 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.2696, allocations: 29.09 kB / 0.5208 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003373/0.2699, allocations: 239.3 kB / 0.521 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.27, allocations: 0 / 0.521 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.27, allocations: 11 kB / 0.521 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.27, allocations: 8.812 kB / 0.521 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/0.2702, allocations: 169.5 kB / 0.5212 GB, free: 33.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007235/0.271, allocations: 0.6491 MB / 0.5218 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004302/0.2714, allocations: 226.6 kB / 0.522 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.2715, allocations: 68 kB / 0.5221 GB, free: 33.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.2716, allocations: 3.234 kB / 0.5221 GB, free: 33.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.46e-05/0.2716, allocations: 37.7 kB / 0.5221 GB, free: 33.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.332e-06/0.2716, allocations: 0 / 0.5221 GB, free: 33.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.0003713/0.272, allocations: 221.7 kB / 0.5223 GB, free: 32.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.211e-05/0.272, allocations: 61.61 kB / 0.5224 GB, free: 32.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.407e-05/0.2721, allocations: 103.7 kB / 0.5225 GB, free: 32.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.2721, allocations: 32.55 kB / 0.5225 GB, free: 32.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.948e-05/0.2721, allocations: 151.2 kB / 0.5227 GB, free: 32.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.142e-05/0.2722, allocations: 92.39 kB / 0.5228 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-06/0.2722, allocations: 8 kB / 0.5228 GB, free: 32.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.516e-05/0.2722, allocations: 321.5 kB / 0.5231 GB, free: 32.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.98e-05/0.2723, allocations: 45.95 kB / 0.5231 GB, free: 32.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.371e-05/0.2724, allocations: 48.44 kB / 0.5232 GB, free: 32.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.2726, allocations: 124.4 kB / 0.5233 GB, free: 32.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2726, allocations: 4 kB / 0.5233 GB, free: 32.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002257/0.2728, allocations: 167.9 kB / 0.5235 GB, free: 32.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.2728, allocations: 3.125 kB / 0.5235 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2728, allocations: 0 / 0.5235 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2729, allocations: 2.906 kB / 0.5235 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.2732, allocations: 103.7 kB / 0.5236 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2732, allocations: 3 kB / 0.5236 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.919e-05/0.2733, allocations: 21.33 kB / 0.5236 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.2733, allocations: 7.062 kB / 0.5236 GB, free: 32 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.873e-05/0.2734, allocations: 119.7 kB / 0.5237 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.043e-05/0.2734, allocations: 13.03 kB / 0.5237 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.03e-05/0.2735, allocations: 31.84 kB / 0.5237 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.2735, allocations: 6.938 kB / 0.5238 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2735, allocations: 4 kB / 0.5238 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.2735, allocations: 3.234 kB / 0.5238 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.2737, allocations: 285.3 kB / 0.524 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2737, allocations: 0 / 0.524 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.274, allocations: 93.11 kB / 0.5241 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.274, allocations: 2.969 kB / 0.5241 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.274, allocations: 8 kB / 0.5241 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.274, allocations: 6.75 kB / 0.5241 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.274, allocations: 0 / 0.5241 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000237/0.2743, allocations: 276.8 kB / 0.5244 GB, free: 31.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.124e-05/0.2743, allocations: 92.12 kB / 0.5245 GB, free: 31.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.2743, allocations: 4 kB / 0.5245 GB, free: 31.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.903e-05/0.2744, allocations: 21.22 kB / 0.5245 GB, free: 31.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.2745, allocations: 16.62 kB / 0.5245 GB, free: 31.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2745, allocations: 8.281 kB / 0.5245 GB, free: 31.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.095e-05/0.2745, allocations: 88.19 kB / 0.5246 GB, free: 31.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2745, allocations: 0 / 0.5246 GB, free: 31.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000231/0.2748, allocations: 52.78 kB / 0.5247 GB, free: 31.18 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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 Backend phase and start with SimCode phase: time 0.0004806/0.2752, allocations: 0.8791 MB / 0.5255 GB, free: 30.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002116/0.2755, allocations: 130.2 kB / 0.5257 GB, free: 30.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2755, allocations: 0 / 0.5257 GB, free: 30.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.959e-05/0.2756, allocations: 89.55 kB / 0.5257 GB, free: 30.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.2758, allocations: 21.47 kB / 0.5258 GB, free: 30.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.2769, allocations: 1.152 MB / 0.5269 GB, free: 29.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.277, allocations: 0.7406 MB / 0.5276 GB, free: 28.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-05/0.2771, allocations: 65.14 kB / 0.5277 GB, free: 28.9 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2771, allocations: 0 / 0.5277 GB, free: 28.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.374/2.651, allocations: 2.373 MB / 0.53 GB, free: 28.68 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ConversionBlocks_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches