Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002071/0.002071, allocations: 202.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007224/0.0007225, allocations: 96.12 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002553/0.0002555, allocations: 8 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2442, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001769/0.2461, allocations: 1.53 MB / 413.6 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.2476, allocations: 1.642 MB / 415.2 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.475e-05/0.2478, allocations: 0 / 415.2 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006154/0.2484, allocations: 161.6 kB / 415.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003162/0.2487, allocations: 143.5 kB / 415.5 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.2491, allocations: 162.7 kB / 415.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.2493, allocations: 215.4 kB / 415.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2494, allocations: 29.52 kB / 415.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.659e-05/0.2495, allocations: 75.62 kB / 416 MB, free: 21.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.909e-05/0.2496, allocations: 87.61 kB / 416.1 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.2497, allocations: 4 kB / 416.1 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.2498, allocations: 43.92 kB / 416.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.094e-05/0.2498, allocations: 43.83 kB / 416.2 MB, free: 21.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.932e-05/0.2499, allocations: 93.23 kB / 416.2 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.2501, allocations: 216.8 kB / 416.5 MB, free: 21.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2501, allocations: 0 / 416.5 MB, free: 21.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2501, allocations: 0 / 416.5 MB, free: 21.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.2502, allocations: 0 / 416.5 MB, free: 21.32 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.000646/0.2508, allocations: 0.508 MB / 417 MB, free: 20.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.2508, allocations: 8.031 kB / 417 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/0.2509, allocations: 24.73 kB / 417 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.2512, allocations: 258.8 kB / 417.3 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.2512, allocations: 4.375 kB / 417.3 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.2512, allocations: 8.125 kB / 417.3 MB, free: 20.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.2514, allocations: 129.9 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2515, allocations: 0 / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.2515, allocations: 3.938 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2515, allocations: 4 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.2516, allocations: 51.91 kB / 417.5 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004742/0.2521, allocations: 0.6105 MB / 418.1 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.2523, allocations: 119.9 kB / 418.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.536e-05/0.2524, allocations: 54.55 kB / 418.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.2524, allocations: 0 / 418.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.2526, allocations: 125.9 kB / 418.4 MB, free: 19.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.2526, allocations: 0 / 418.4 MB, free: 19.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003831/0.253, allocations: 173.4 kB / 418.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.2531, allocations: 136.6 kB / 418.7 MB, free: 18.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.2533, allocations: 300.8 kB / 419 MB, free: 18.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.2533, allocations: 33.7 kB / 419 MB, free: 18.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.2534, allocations: 124.4 kB / 419.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.2534, allocations: 23.7 kB / 419.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.2534, allocations: 0 / 419.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.347e-05/0.2535, allocations: 342.8 kB / 419.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.599e-05/0.2536, allocations: 31.92 kB / 419.5 MB, free: 17.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.231e-05/0.2537, allocations: 89.92 kB / 419.6 MB, free: 17.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.2538, allocations: 96.25 kB / 419.7 MB, free: 17.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2538, allocations: 3.938 kB / 419.7 MB, free: 17.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000216/0.254, allocations: 141.8 kB / 419.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.2541, allocations: 8 kB / 419.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.2541, allocations: 3.984 kB / 419.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.2541, allocations: 4 kB / 419.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.734e-05/0.2542, allocations: 12 kB / 419.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.2542, allocations: 4.094 kB / 419.9 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2543, allocations: 27.98 kB / 419.9 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.2543, allocations: 7.938 kB / 419.9 MB, free: 17.55 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.574e-05/0.2544, allocations: 149.7 kB / 420 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.2544, allocations: 19.72 kB / 420.1 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.843e-05/0.2545, allocations: 29.7 kB / 420.1 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2545, allocations: 8 kB / 420.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2545, allocations: 0 / 420.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2545, allocations: 3.938 kB / 420.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.2547, allocations: 245.5 kB / 420.3 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2547, allocations: 0 / 420.3 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.694e-05/0.2547, allocations: 11.97 kB / 420.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.2547, allocations: 4 kB / 420.3 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2547, allocations: 0 / 420.3 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2547, allocations: 7.938 kB / 420.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2547, allocations: 0 / 420.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.255, allocations: 178.5 kB / 420.5 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.255, allocations: 104.8 kB / 420.6 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.2551, allocations: 11.94 kB / 420.6 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.474e-05/0.2552, allocations: 11.98 kB / 420.7 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.823e-05/0.2552, allocations: 23.92 kB / 420.7 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.2552, allocations: 4 kB / 420.7 MB, free: 16.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001462/0.2554, allocations: 216.4 kB / 420.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2554, allocations: 0 / 420.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000219/0.2556, allocations: 32 kB / 420.9 MB, free: 16.41 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 (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.0008331/0.2565, allocations: 481.3 kB / 421.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002252/0.2567, allocations: 91.91 kB / 421.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2567, allocations: 0 / 421.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.2568, allocations: 59.89 kB / 421.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.2572, allocations: 50.91 kB / 421.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004679/0.2577, allocations: 392.5 kB / 422 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.2578, allocations: 0.7321 MB / 422.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.16e-05/0.2579, allocations: 33.52 kB / 422.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.188e-05/0.258, allocations: 23.44 kB / 422.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.258, allocations: 0 / 422.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of Templates: time 0.004768/0.2627, allocations: 2.559 MB / 425.3 MB, free: 12.09 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches