Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) 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: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 199.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 226.6 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008676/0.0008675, allocations: 102.1 kB / 296.8 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 4 kB / 356.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3076, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001234/0.3089, allocations: 1.218 MB / 409.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005983/0.3095, allocations: 0.4891 MB / 409.7 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.174e-05/0.3095, allocations: 0.5 kB / 409.7 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.909e-05/0.3096, allocations: 22.02 kB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.871e-05/0.3097, allocations: 3.938 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001202/0.3098, allocations: 27.92 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7e-05/0.3099, allocations: 51.83 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.31, allocations: 16.89 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.3101, allocations: 33.31 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.087e-05/0.3102, allocations: 23.92 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.3102, allocations: 0 / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.719e-05/0.3103, allocations: 15.94 kB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.221e-05/0.3103, allocations: 12.59 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.231e-05/0.3103, allocations: 45.56 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.654e-05/0.3104, allocations: 57.84 kB / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3104, allocations: 0 / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3104, allocations: 0 / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.3105, allocations: 4 kB / 410 MB, free: 25.7 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.0004675/0.3109, allocations: 379.6 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.311, allocations: 8.031 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.311, allocations: 8.844 kB / 410.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.451e-05/0.3111, allocations: 177.9 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.3111, allocations: 384 / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.3111, allocations: 8.375 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.3114, allocations: 97.33 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.3114, allocations: 4 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.3114, allocations: 4 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.3114, allocations: 3.938 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/0.3117, allocations: 99.91 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003169/0.312, allocations: 308.7 kB / 411.1 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.3123, allocations: 90.56 kB / 411.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.3124, allocations: 56.94 kB / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.3124, allocations: 0 / 411.3 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.28e-05/0.3124, allocations: 30.56 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.3125, allocations: 4 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004985/0.313, allocations: 177.6 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/0.313, allocations: 55.34 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.329e-05/0.3131, allocations: 117.8 kB / 411.6 MB, free: 23.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.3131, allocations: 25.7 kB / 411.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.026e-05/0.3131, allocations: 96.05 kB / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.3131, allocations: 15.73 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-06/0.3131, allocations: 4 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.903e-05/0.3132, allocations: 318.8 kB / 412.1 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.3133, allocations: 51.95 kB / 412.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.3135, allocations: 43.97 kB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.3137, allocations: 104.8 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3137, allocations: 0 / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002913/0.314, allocations: 133.5 kB / 412.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3141, allocations: 15.92 kB / 412.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3141, allocations: 0 / 412.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.3141, allocations: 4 kB / 412.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3142, allocations: 23.98 kB / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.3142, allocations: 3.984 kB / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.471e-05/0.3143, allocations: 15.98 kB / 412.5 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.3143, allocations: 4 kB / 412.5 MB, free: 23.05 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 4.829e-05/0.3144, allocations: 121.8 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.3144, allocations: 4 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003503/0.3148, allocations: 161.4 kB / 412.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3148, allocations: 0 / 412.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3148, allocations: 0 / 412.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3148, allocations: 3.984 kB / 412.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001301/0.3149, allocations: 190 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3149, allocations: 0 / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.315, allocations: 31.98 kB / 413 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3151, allocations: 3.984 kB / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.3151, allocations: 0 / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3151, allocations: 3.984 kB / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3151, allocations: 0 / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003314/0.3154, allocations: 247.3 kB / 413.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.76e-05/0.3154, allocations: 81.02 kB / 413.3 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.3155, allocations: 3.984 kB / 413.3 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3156, allocations: 19.98 kB / 413.3 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.555e-05/0.3156, allocations: 8 kB / 413.3 MB, free: 22.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.3156, allocations: 3.984 kB / 413.3 MB, free: 22.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.714e-05/0.3157, allocations: 91.59 kB / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3157, allocations: 0 / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001997/0.3159, allocations: 11.94 kB / 413.4 MB, free: 21.98 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 8.401e-05/0.316, allocations: 107.2 kB / 413.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000321/0.3163, allocations: 107.9 kB / 413.7 MB, free: 21.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3163, allocations: 0 / 413.7 MB, free: 21.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.3165, allocations: 63.89 kB / 413.7 MB, free: 21.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.3167, allocations: 6.406 kB / 413.7 MB, free: 21.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002705/0.317, allocations: 208 kB / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.789e-05/0.3171, allocations: 0.6926 MB / 414.6 MB, free: 20.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.3172, allocations: 11.44 kB / 414.6 MB, free: 20.72 MB / 298.7 MB Notification: Performance of SimCode: time 3.9e-07/0.3172, allocations: 0 / 414.6 MB, free: 20.72 MB / 298.7 MB Notification: Performance of Templates: time 0.001817/0.319, allocations: 0.956 MB / 415.6 MB, free: 19.77 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches