Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1010,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1010,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00175/0.00175, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002038/0.002038, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.5/1.5, allocations: 230.4 MB / 251.1 MB, free: 8.438 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 71.83 kB / 368.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3134, allocations: 53.32 MB / 422.2 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002817/0.3162, allocations: 1.522 MB / 423.8 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009646/0.3172, allocations: 0.5336 MB / 424.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.228e-05/0.3172, allocations: 0 / 424.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.3173, allocations: 23.86 kB / 424.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.565e-05/0.3174, allocations: 7.875 kB / 424.3 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001922/0.3176, allocations: 47.89 kB / 424.4 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.3177, allocations: 59.78 kB / 424.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.3178, allocations: 11.98 kB / 424.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.318, allocations: 35.84 kB / 424.5 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.459e-05/0.3181, allocations: 31.89 kB / 424.5 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.3181, allocations: 4 kB / 424.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.991e-05/0.3182, allocations: 19.94 kB / 424.5 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.949e-05/0.3182, allocations: 15.98 kB / 424.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.36e-05/0.3182, allocations: 19.88 kB / 424.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.3184, allocations: 71.23 kB / 424.6 MB, free: 5.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3184, allocations: 4 kB / 424.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3184, allocations: 4 kB / 424.6 MB, free: 5.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.3184, allocations: 0 / 424.6 MB, free: 5.441 MB / 334.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.0006971/0.3191, allocations: 378.2 kB / 425 MB, free: 5.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3191, allocations: 12.03 kB / 425 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.514e-05/0.3192, allocations: 8.891 kB / 425 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.3193, allocations: 168.3 kB / 425.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.3193, allocations: 8.375 kB / 425.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.3193, allocations: 8.375 kB / 425.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.3196, allocations: 89.89 kB / 425.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3196, allocations: 0 / 425.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3197, allocations: 0 / 425.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3197, allocations: 3.938 kB / 425.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.32, allocations: 79.92 kB / 425.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.3205, allocations: 316.7 kB / 425.7 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.3207, allocations: 66.53 kB / 425.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.3209, allocations: 44.95 kB / 425.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.3209, allocations: 4 kB / 425.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3209, allocations: 34.55 kB / 425.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.3209, allocations: 96 / 425.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005686/0.3215, allocations: 153.7 kB / 426 MB, free: 3.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.3215, allocations: 51.41 kB / 426 MB, free: 3.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.3216, allocations: 117.8 kB / 426.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.3217, allocations: 29.7 kB / 426.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.3217, allocations: 96.03 kB / 426.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.3217, allocations: 7.906 kB / 426.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/0.3218, allocations: 21.7 kB / 426.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3219, allocations: 318.8 kB / 426.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.3221, allocations: 44.02 kB / 426.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.3222, allocations: 39.97 kB / 426.7 MB, free: 3.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.3225, allocations: 80.72 kB / 426.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3225, allocations: 0 / 426.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003302/0.3228, allocations: 117.6 kB / 426.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.3229, allocations: 4 kB / 426.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.3229, allocations: 3.984 kB / 426.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3229, allocations: 0 / 426.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.323, allocations: 15.98 kB / 426.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.323, allocations: 3.984 kB / 426.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.028e-05/0.3231, allocations: 19.92 kB / 426.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.3231, allocations: 4 kB / 426.9 MB, free: 2.918 MB / 334.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.0001105/0.3232, allocations: 121.7 kB / 427.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.607e-05/0.3233, allocations: 4 kB / 427.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004135/0.3237, allocations: 129.6 kB / 427.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3237, allocations: 0 / 427.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3237, allocations: 0 / 427.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3237, allocations: 0 / 427.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.3239, allocations: 197.5 kB / 427.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3239, allocations: 3.938 kB / 427.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.324, allocations: 19.98 kB / 427.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.324, allocations: 0 / 427.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.324, allocations: 4 kB / 427.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.324, allocations: 192 / 427.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.324, allocations: 7.938 kB / 427.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.3244, allocations: 219.4 kB / 427.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.694e-05/0.3245, allocations: 81.06 kB / 427.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.3245, allocations: 384 / 427.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.3246, allocations: 23.97 kB / 427.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.3247, allocations: 7.984 kB / 427.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.3247, allocations: 0 / 427.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.165e-05/0.3247, allocations: 95.2 kB / 427.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3247, allocations: 0 / 427.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.325, allocations: 15.94 kB / 427.8 MB, free: 1.898 MB / 334.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.0001381/0.3251, allocations: 103.2 kB / 427.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003655/0.3255, allocations: 91.89 kB / 428 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3255, allocations: 0 / 428 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001625/0.3256, allocations: 47.95 kB / 428.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.3259, allocations: 4 kB / 428.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004189/0.3263, allocations: 169.9 kB / 428.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.3267, allocations: 0.6846 MB / 428.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.568e-05/0.3267, allocations: 7.984 kB / 428.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/0.3267, allocations: 11.44 kB / 429 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3267, allocations: 0 / 429 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of Templates: time 0.003756/0.3305, allocations: 0.9183 MB / 429.9 MB, free: 15.81 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches