Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.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: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001409/0.001409, allocations: 179.6 kB / 16.41 MB, free: 5.703 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.459/1.459, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0009535/0.0009535, allocations: 99.78 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002754, allocations: 12 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1891/0.1894, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002118/0.1915, allocations: 1.495 MB / 376 MB, free: 44.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.193, allocations: 0.8816 MB / 376.9 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.183e-05/0.1931, allocations: 2.281 kB / 376.9 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005503/0.1937, allocations: 149.9 kB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.194, allocations: 104.7 kB / 377.2 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004219/0.1944, allocations: 129.4 kB / 377.3 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.1946, allocations: 182.5 kB / 377.5 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.385e-05/0.1947, allocations: 32.53 kB / 377.5 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.1949, allocations: 69.05 kB / 377.6 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.195, allocations: 77.58 kB / 377.6 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.195, allocations: 9.344 kB / 377.7 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.1952, allocations: 46.22 kB / 377.7 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.283e-05/0.1953, allocations: 42.8 kB / 377.7 MB, free: 43.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.105e-05/0.1953, allocations: 55.7 kB / 377.8 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002212/0.1956, allocations: 155.4 kB / 377.9 MB, free: 42.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1956, allocations: 1.156 kB / 378 MB, free: 42.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1956, allocations: 0 / 378 MB, free: 42.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1956, allocations: 4 kB / 378 MB, free: 42.92 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007854/0.1964, allocations: 0.4927 MB / 378.4 MB, free: 42.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.1964, allocations: 12.88 kB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.1965, allocations: 20.72 kB / 378.5 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.1968, allocations: 259.5 kB / 378.7 MB, free: 42.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.1968, allocations: 7.062 kB / 378.7 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.1969, allocations: 5.094 kB / 378.7 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.1971, allocations: 121.6 kB / 378.9 MB, free: 42.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.1972, allocations: 1.219 kB / 378.9 MB, free: 42.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.1972, allocations: 1.25 kB / 378.9 MB, free: 42.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1972, allocations: 1.906 kB / 378.9 MB, free: 42.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.1974, allocations: 59.03 kB / 378.9 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/0.198, allocations: 0.5988 MB / 379.5 MB, free: 41.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.1983, allocations: 129.8 kB / 379.7 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.1985, allocations: 49.16 kB / 379.7 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.1985, allocations: 6.219 kB / 379.7 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.1988, allocations: 118.6 kB / 379.8 MB, free: 41.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.894e-06/0.1988, allocations: 0 / 379.8 MB, free: 41.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.000581/0.1994, allocations: 179.4 kB / 380 MB, free: 41.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.1995, allocations: 130.7 kB / 380.1 MB, free: 40.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/0.1998, allocations: 292.9 kB / 380.4 MB, free: 40.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.1999, allocations: 28.8 kB / 380.4 MB, free: 40.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.2, allocations: 125.2 kB / 380.6 MB, free: 40.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.2, allocations: 27.59 kB / 380.6 MB, free: 40.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/0.2, allocations: 5.406 kB / 380.6 MB, free: 40.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.573e-05/0.2001, allocations: 335.9 kB / 380.9 MB, free: 40.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.2002, allocations: 28.83 kB / 380.9 MB, free: 40.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.2004, allocations: 91.47 kB / 381 MB, free: 40.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.2006, allocations: 35 kB / 381.1 MB, free: 40.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2006, allocations: 3.938 kB / 381.1 MB, free: 40.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003497/0.2009, allocations: 147.6 kB / 381.2 MB, free: 39.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.201, allocations: 5.25 kB / 381.2 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.201, allocations: 5.188 kB / 381.2 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.201, allocations: 2.406 kB / 381.2 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.2011, allocations: 16.62 kB / 381.2 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.2011, allocations: 9.016 kB / 381.3 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.2013, allocations: 15.62 kB / 381.3 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.2013, allocations: 12.61 kB / 381.3 MB, free: 39.94 MB / 298.7 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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.2014, allocations: 148.2 kB / 381.4 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.434e-05/0.2015, allocations: 24.48 kB / 381.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.721e-05/0.2016, allocations: 21.69 kB / 381.5 MB, free: 39.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2016, allocations: 10.02 kB / 381.5 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2016, allocations: 1.156 kB / 381.5 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2016, allocations: 5.203 kB / 381.5 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.2018, allocations: 239.2 kB / 381.7 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2018, allocations: 1.125 kB / 381.7 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.533e-05/0.2019, allocations: 9.109 kB / 381.7 MB, free: 39.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.2019, allocations: 1.312 kB / 381.7 MB, free: 39.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.2019, allocations: 5.344 kB / 381.7 MB, free: 39.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2019, allocations: 5.25 kB / 381.7 MB, free: 39.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2019, allocations: 1.344 kB / 381.7 MB, free: 39.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003446/0.2023, allocations: 183.9 kB / 381.9 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.107e-05/0.2023, allocations: 95.34 kB / 382 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.2024, allocations: 6.812 kB / 382 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.2025, allocations: 17.02 kB / 382 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.071e-05/0.2026, allocations: 14.52 kB / 382.1 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.2026, allocations: 3.969 kB / 382.1 MB, free: 39.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002309/0.2029, allocations: 215.6 kB / 382.3 MB, free: 39.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2029, allocations: 5.156 kB / 382.3 MB, free: 39.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003942/0.2033, allocations: 30.53 kB / 382.3 MB, free: 39.09 MB / 298.7 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 (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.001107/0.2044, allocations: 420.5 kB / 382.7 MB, free: 38.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.2048, allocations: 97.55 kB / 382.8 MB, free: 38.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2048, allocations: 0 / 382.8 MB, free: 38.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.205, allocations: 56.05 kB / 382.9 MB, free: 38.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000478/0.2055, allocations: 50.95 kB / 382.9 MB, free: 38.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000683/0.2062, allocations: 411.9 kB / 383.3 MB, free: 38.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001571/0.2064, allocations: 0.7276 MB / 384 MB, free: 37.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.2064, allocations: 19.41 kB / 384.1 MB, free: 37.61 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2064, allocations: 0 / 384.1 MB, free: 37.61 MB / 298.7 MB Notification: Performance of Templates: time 0.005743/0.2122, allocations: 2.856 MB / 386.9 MB, free: 35.99 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches