Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) 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(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock",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.001474/0.001474, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.349/1.349, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0008771/0.0008772, allocations: 93.47 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003497, allocations: 11.98 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2545, allocations: 47.56 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001373/0.2559, allocations: 1.202 MB / 376.4 MB, free: 44.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006771/0.2566, allocations: 0.5028 MB / 376.9 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.334e-05/0.2566, allocations: 1.219 kB / 376.9 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.623e-05/0.2567, allocations: 12.55 kB / 376.9 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.304e-05/0.2568, allocations: 13.11 kB / 376.9 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001256/0.2569, allocations: 30.7 kB / 376.9 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.946e-05/0.257, allocations: 51.28 kB / 377 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.2571, allocations: 19.11 kB / 377 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2572, allocations: 24.62 kB / 377 MB, free: 44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.887e-05/0.2573, allocations: 23.25 kB / 377 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.2573, allocations: 2.188 kB / 377 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.349e-05/0.2574, allocations: 17.19 kB / 377.1 MB, free: 43.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.2574, allocations: 10.05 kB / 377.1 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.376e-05/0.2574, allocations: 42.14 kB / 377.1 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.481e-05/0.2575, allocations: 43.5 kB / 377.2 MB, free: 43.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.525e-06/0.2576, allocations: 9.172 kB / 377.2 MB, free: 43.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2576, allocations: 4 kB / 377.2 MB, free: 43.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.2576, allocations: 3.938 kB / 377.2 MB, free: 43.88 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005221/0.2581, allocations: 377.8 kB / 377.5 MB, free: 43.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.2582, allocations: 8.969 kB / 377.6 MB, free: 43.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.91e-05/0.2582, allocations: 35.94 kB / 377.6 MB, free: 43.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.429e-05/0.2582, allocations: 12.12 kB / 377.6 MB, free: 43.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.161e-05/0.2583, allocations: 175.6 kB / 377.8 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.2583, allocations: 2.531 kB / 377.8 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.2584, allocations: 3.594 kB / 377.8 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.2586, allocations: 99.23 kB / 377.9 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2586, allocations: 3.938 kB / 377.9 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.2587, allocations: 1.125 kB / 377.9 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2587, allocations: 1.281 kB / 377.9 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.259, allocations: 110.5 kB / 378 MB, free: 43.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003271/0.2593, allocations: 304.1 kB / 378.3 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.2596, allocations: 88.81 kB / 378.4 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.2598, allocations: 60.56 kB / 378.4 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.2598, allocations: 0 / 378.4 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.2598, allocations: 31.78 kB / 378.5 MB, free: 42.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.2598, allocations: 0 / 378.5 MB, free: 42.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006036/0.2604, allocations: 189.5 kB / 378.6 MB, free: 42.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.2605, allocations: 56.34 kB / 378.7 MB, free: 42.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.686e-05/0.2605, allocations: 108.6 kB / 378.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.156e-06/0.2605, allocations: 26.08 kB / 378.8 MB, free: 42.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.2606, allocations: 94.17 kB / 378.9 MB, free: 42.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.2606, allocations: 18.8 kB / 378.9 MB, free: 42.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.2606, allocations: 0 / 378.9 MB, free: 42.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.357e-05/0.2607, allocations: 323.9 kB / 379.3 MB, free: 41.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.2608, allocations: 49.52 kB / 379.3 MB, free: 41.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.261, allocations: 49.94 kB / 379.4 MB, free: 41.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.2613, allocations: 100.9 kB / 379.5 MB, free: 41.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2613, allocations: 0 / 379.5 MB, free: 41.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003457/0.2617, allocations: 143.5 kB / 379.6 MB, free: 41.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2617, allocations: 5.062 kB / 379.6 MB, free: 41.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.2617, allocations: 4.953 kB / 379.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.2617, allocations: 3.984 kB / 379.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.2618, allocations: 21.55 kB / 379.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2619, allocations: 0.8438 kB / 379.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.549e-05/0.262, allocations: 20.67 kB / 379.7 MB, free: 41.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-06/0.262, allocations: 9.297 kB / 379.7 MB, free: 41.75 MB / 298.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 (5): * Single equations (assignments): 5 * 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 5.481e-05/0.262, allocations: 113.3 kB / 379.8 MB, free: 41.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.2621, allocations: 2.812 kB / 379.8 MB, free: 41.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004097/0.2625, allocations: 150.9 kB / 379.9 MB, free: 41.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2625, allocations: 1 kB / 379.9 MB, free: 41.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2625, allocations: 4.938 kB / 379.9 MB, free: 41.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.2625, allocations: 3.984 kB / 379.9 MB, free: 41.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.2627, allocations: 196 kB / 380.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2627, allocations: 448 / 380.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.2628, allocations: 28.92 kB / 380.2 MB, free: 41.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2628, allocations: 0 / 380.2 MB, free: 41.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.2628, allocations: 9.203 kB / 380.2 MB, free: 41.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2628, allocations: 0 / 380.2 MB, free: 41.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2628, allocations: 5 kB / 380.2 MB, free: 41.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.2632, allocations: 235.8 kB / 380.4 MB, free: 41.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.275e-05/0.2632, allocations: 87.28 kB / 380.5 MB, free: 41.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.2633, allocations: 5 kB / 380.5 MB, free: 41.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.2634, allocations: 19.77 kB / 380.5 MB, free: 41.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.2634, allocations: 7.203 kB / 380.5 MB, free: 41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.2635, allocations: 5.094 kB / 380.5 MB, free: 41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.151e-05/0.2635, allocations: 89.94 kB / 380.6 MB, free: 40.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2635, allocations: 288 / 380.6 MB, free: 40.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00021/0.2637, allocations: 13.47 kB / 380.6 MB, free: 40.91 MB / 298.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 (7): * Single equations (assignments): 7 * 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.0005642/0.2643, allocations: 0.7789 MB / 381.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003846/0.2647, allocations: 108.1 kB / 381.5 MB, free: 40.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2647, allocations: 0 / 381.5 MB, free: 40.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.2649, allocations: 59.89 kB / 381.6 MB, free: 40.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.2652, allocations: 13.22 kB / 381.6 MB, free: 40.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000433/0.2656, allocations: 238.6 kB / 381.8 MB, free: 39.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.2657, allocations: 0.6887 MB / 382.5 MB, free: 39.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.058e-05/0.2658, allocations: 18.53 kB / 382.5 MB, free: 39.17 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2658, allocations: 0 / 382.5 MB, free: 39.17 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.348/2.613, allocations: 1.144 MB / 383.7 MB, free: 38.6 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches