Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 107.1 kB / 17.17 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.358/2.358, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 39.94 kB / 300.6 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1898, allocations: 49.46 MB / 350.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.00552/0.1954, allocations: 1.553 MB / 351.6 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1971, allocations: 0.4948 MB / 352.1 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.875e-05/0.1973, allocations: 0 / 352.1 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.1975, allocations: 15.92 kB / 352.1 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.1977, allocations: 3.984 kB / 352.1 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.198, allocations: 35.92 kB / 352.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.1982, allocations: 55.78 kB / 352.2 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.1984, allocations: 19.95 kB / 352.2 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.1986, allocations: 27.91 kB / 352.3 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.1988, allocations: 27.84 kB / 352.3 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.361e-05/0.1988, allocations: 4 kB / 352.3 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.199, allocations: 23.98 kB / 352.3 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.62e-05/0.199, allocations: 8 kB / 352.3 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.19e-05/0.1991, allocations: 23.86 kB / 352.3 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002013/0.1993, allocations: 43.86 kB / 352.4 MB, free: 2.277 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1993, allocations: 0 / 352.4 MB, free: 2.277 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1993, allocations: 0 / 352.4 MB, free: 2.277 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1994, allocations: 4 kB / 352.4 MB, free: 2.273 MB / 286.1 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.001093/0.2005, allocations: 387.5 kB / 352.8 MB, free: 1.848 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.099e-05/0.2005, allocations: 11.97 kB / 352.8 MB, free: 1.836 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.2006, allocations: 8.844 kB / 352.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.2008, allocations: 176.3 kB / 353 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.2009, allocations: 384 / 353 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.2009, allocations: 4.375 kB / 353 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000466/0.2014, allocations: 93.89 kB / 353.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.2014, allocations: 0 / 353.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.2015, allocations: 0 / 353.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2015, allocations: 0 / 353.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000567/0.2021, allocations: 79.92 kB / 353.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008112/0.2029, allocations: 320.6 kB / 353.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000402/0.2033, allocations: 70.53 kB / 353.5 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002839/0.2036, allocations: 48.95 kB / 353.6 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.2037, allocations: 0 / 353.6 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.2037, allocations: 34.55 kB / 353.6 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 2.294e-06/0.2037, allocations: 0 / 353.6 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.001024/0.2048, allocations: 161.5 kB / 353.8 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.2048, allocations: 51.41 kB / 353.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.205, allocations: 113.8 kB / 353.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.2051, allocations: 25.7 kB / 353.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.052e-05/0.2052, allocations: 92.08 kB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.332e-05/0.2052, allocations: 15.72 kB / 354 MB, free: 424 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.2053, allocations: 22.08 kB / 354.1 MB, free: 396 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.2055, allocations: 318.8 kB / 354.4 MB, free: 68 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/0.2058, allocations: 43.95 kB / 354.4 MB, free: 24 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.2061, allocations: 32.05 kB / 354.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005682/0.2067, allocations: 88.66 kB / 354.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.2068, allocations: 4 kB / 354.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0006619/0.2074, allocations: 105.6 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.2075, allocations: 4 kB / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.2075, allocations: 3.984 kB / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.2075, allocations: 0 / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.2078, allocations: 19.98 kB / 354.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/0.2078, allocations: 4 kB / 354.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.208, allocations: 19.86 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.208, allocations: 4 kB / 354.7 MB, free: 15.73 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.2082, allocations: 117.8 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.369e-05/0.2083, allocations: 7.906 kB / 354.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007452/0.209, allocations: 137.5 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.209, allocations: 0 / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.2091, allocations: 0 / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2091, allocations: 0 / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000386/0.2095, allocations: 193.5 kB / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2095, allocations: 448 / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.2097, allocations: 19.98 kB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.2098, allocations: 0 / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.2098, allocations: 4 kB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2098, allocations: 0 / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2098, allocations: 4 kB / 355.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007282/0.2106, allocations: 227.2 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.96e-05/0.2106, allocations: 81.02 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.2107, allocations: 4 kB / 355.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.2109, allocations: 15.97 kB / 355.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.608e-05/0.211, allocations: 8 kB / 355.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.211, allocations: 0 / 355.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.2112, allocations: 91.27 kB / 355.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2112, allocations: 0 / 355.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000441/0.2116, allocations: 15.94 kB / 355.6 MB, free: 14.72 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002186/0.2119, allocations: 111.2 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006097/0.2125, allocations: 88.12 kB / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.2125, allocations: 0 / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004408/0.213, allocations: 47.95 kB / 355.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.2135, allocations: 11.94 kB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006461/0.2142, allocations: 217.4 kB / 356.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.2146, allocations: 0.6887 MB / 356.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.407e-05/0.2147, allocations: 7.438 kB / 356.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2147, allocations: 4 kB / 356.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of Templates: time 0.004348/0.2191, allocations: 0.951 MB / 357.7 MB, free: 12.54 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches