Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 104.9 kB / 17.72 MB, free: 5.242 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.001381/0.001382, allocations: 188.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 51.92 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.104, allocations: 46.62 MB / 375.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003289/0.1073, allocations: 1.824 MB / 377 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.109, allocations: 0.9447 MB / 377.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1092, allocations: 4 kB / 377.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007682/0.11, allocations: 175.4 kB / 378.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003185/0.1103, allocations: 123.5 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.1107, allocations: 151.6 kB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.111, allocations: 211.4 kB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.1112, allocations: 17.56 kB / 378.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.1113, allocations: 91.56 kB / 378.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.1115, allocations: 83.67 kB / 378.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/0.1115, allocations: 12 kB / 378.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.1116, allocations: 59.89 kB / 378.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.746e-05/0.1117, allocations: 47.84 kB / 378.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.471e-05/0.1118, allocations: 75.55 kB / 378.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.1121, allocations: 219.3 kB / 379.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1121, allocations: 0 / 379.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1121, allocations: 3.938 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1122, allocations: 0 / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.2142/0.3263, allocations: 0.5193 MB / 379.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.3264, allocations: 10.25 kB / 379.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.846e-05/0.3265, allocations: 23.94 kB / 379.7 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.3269, allocations: 255.3 kB / 379.9 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.327, allocations: 7.406 kB / 380 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.327, allocations: 9.125 kB / 380 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.3273, allocations: 119.4 kB / 380.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.3273, allocations: 1.375 kB / 380.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.3273, allocations: 4.812 kB / 380.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.3273, allocations: 2.75 kB / 380.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.3275, allocations: 53.86 kB / 380.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.3281, allocations: 0.5974 MB / 380.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.3284, allocations: 129.7 kB / 380.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.324e-05/0.3285, allocations: 45.88 kB / 380.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.3285, allocations: 4.812 kB / 380.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.3287, allocations: 131.1 kB / 381 MB, free: 12.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.3288, allocations: 7.281 kB / 381.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004202/0.3292, allocations: 168.3 kB / 381.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.3292, allocations: 132.6 kB / 381.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002719/0.3295, allocations: 285.8 kB / 381.6 MB, free: 12.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3295, allocations: 31.95 kB / 381.7 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.381e-05/0.3296, allocations: 127.8 kB / 381.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.3296, allocations: 25.81 kB / 381.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.096e-05/0.3297, allocations: 34.34 kB / 381.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.847e-05/0.3298, allocations: 337.2 kB / 382.2 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.481e-05/0.3299, allocations: 29.06 kB / 382.2 MB, free: 11.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.33, allocations: 91.06 kB / 382.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.3302, allocations: 100.6 kB / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3302, allocations: 0 / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002414/0.3304, allocations: 140.6 kB / 382.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3304, allocations: 5.5 kB / 382.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3304, allocations: 5.922 kB / 382.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3305, allocations: 4.719 kB / 382.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.145e-05/0.3306, allocations: 13.11 kB / 382.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.577e-06/0.3306, allocations: 6.359 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.3307, allocations: 16.77 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.3307, allocations: 6.062 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.000116/0.3308, allocations: 150.7 kB / 382.7 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.3309, allocations: 24.55 kB / 382.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.202e-05/0.331, allocations: 30.17 kB / 382.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.331, allocations: 2.25 kB / 382.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.331, allocations: 1.609 kB / 382.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.331, allocations: 1.297 kB / 382.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002373/0.3312, allocations: 244 kB / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3312, allocations: 0 / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.019e-05/0.3313, allocations: 6.953 kB / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3313, allocations: 5.953 kB / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.3313, allocations: 2.031 kB / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3313, allocations: 1.984 kB / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3313, allocations: 1.375 kB / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.3316, allocations: 183.4 kB / 383.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.168e-05/0.3317, allocations: 97.09 kB / 383.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.3318, allocations: 5.359 kB / 383.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.987e-05/0.3319, allocations: 15.41 kB / 383.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.721e-05/0.3319, allocations: 21.41 kB / 383.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.332, allocations: 4.922 kB / 383.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002596/0.3322, allocations: 209.9 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3322, allocations: 3.719 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.3325, allocations: 38.75 kB / 383.6 MB, free: 10.73 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009665/0.3335, allocations: 419.9 kB / 384 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003072/0.3338, allocations: 96.09 kB / 384.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3338, allocations: 0 / 384.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.334, allocations: 51.05 kB / 384.2 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.3343, allocations: 65.5 kB / 384.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005554/0.3349, allocations: 343.7 kB / 384.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.3351, allocations: 0.7327 MB / 385.3 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.088e-05/0.3352, allocations: 25.88 kB / 385.3 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.3353, allocations: 36.45 kB / 385.4 MB, free: 9.398 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3353, allocations: 0 / 385.4 MB, free: 9.398 MB / 318.1 MB Notification: Performance of Templates: time 0.006819/0.3421, allocations: 2.75 MB / 388.1 MB, free: 9.133 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches