Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 193.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.388/1.388, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008662/0.0008661, allocations: 96.06 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002433, allocations: 8 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2364, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002295/0.2388, allocations: 1.698 MB / 413.7 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.2407, allocations: 1.899 MB / 415.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.2409, allocations: 4 kB / 415.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009386/0.2418, allocations: 286.4 kB / 415.9 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006961/0.2425, allocations: 228.8 kB / 416.1 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009595/0.2435, allocations: 271.5 kB / 416.4 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.2439, allocations: 347.1 kB / 416.7 MB, free: 21.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.2441, allocations: 80.55 kB / 416.8 MB, free: 20.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.2443, allocations: 119.4 kB / 416.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.2446, allocations: 135.4 kB / 417.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.2446, allocations: 8 kB / 417.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.2448, allocations: 63.91 kB / 417.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.2449, allocations: 75.67 kB / 417.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.2451, allocations: 136.9 kB / 417.4 MB, free: 20.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.2455, allocations: 348.2 kB / 417.7 MB, free: 20.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2455, allocations: 4 kB / 417.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2456, allocations: 4 kB / 417.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2456, allocations: 0 / 417.7 MB, free: 20.05 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009971/0.2466, allocations: 0.6068 MB / 418.3 MB, free: 19.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.2466, allocations: 12.03 kB / 418.3 MB, free: 19.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.451e-05/0.2467, allocations: 36.47 kB / 418.4 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004749/0.2472, allocations: 346.2 kB / 418.7 MB, free: 18.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.2473, allocations: 12.38 kB / 418.7 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.2473, allocations: 16.12 kB / 418.7 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.2477, allocations: 146 kB / 418.9 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.2477, allocations: 0 / 418.9 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.2477, allocations: 8 kB / 418.9 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.2478, allocations: 0 / 418.9 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.248, allocations: 63.97 kB / 418.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008016/0.2488, allocations: 0.5003 MB / 419.4 MB, free: 18.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004033/0.2492, allocations: 130.8 kB / 419.6 MB, free: 18.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.2494, allocations: 52.77 kB / 419.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.2494, allocations: 4 kB / 419.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002893/0.2497, allocations: 107.3 kB / 419.7 MB, free: 17.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.144e-06/0.2497, allocations: 0 / 419.7 MB, free: 17.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006392/0.2504, allocations: 221.5 kB / 419.9 MB, free: 17.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.2504, allocations: 106.8 kB / 420 MB, free: 17.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006094/0.2511, allocations: 453.6 kB / 420.5 MB, free: 17.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.2511, allocations: 29.7 kB / 420.5 MB, free: 17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.2512, allocations: 168 kB / 420.7 MB, free: 16.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.437e-05/0.2513, allocations: 39.55 kB / 420.7 MB, free: 16.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.2513, allocations: 0 / 420.7 MB, free: 16.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.259e-05/0.2514, allocations: 350.8 kB / 421.1 MB, free: 16.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.2516, allocations: 39.98 kB / 421.1 MB, free: 16.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.2518, allocations: 103.3 kB / 421.2 MB, free: 16.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.2521, allocations: 114.5 kB / 421.3 MB, free: 16.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2521, allocations: 0 / 421.3 MB, free: 16.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004105/0.2525, allocations: 181.1 kB / 421.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2526, allocations: 7.938 kB / 421.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.2526, allocations: 0 / 421.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.2526, allocations: 4 kB / 421.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.2528, allocations: 23.92 kB / 421.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.2528, allocations: 4 kB / 421.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.253, allocations: 27.92 kB / 421.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.253, allocations: 4 kB / 421.6 MB, free: 15.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.000194/0.2532, allocations: 178.1 kB / 421.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.548e-05/0.2533, allocations: 35.47 kB / 421.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.824e-05/0.2534, allocations: 38.95 kB / 421.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2534, allocations: 0 / 421.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.2534, allocations: 0 / 421.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2534, allocations: 0 / 421.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000303/0.2537, allocations: 313.4 kB / 422.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2537, allocations: 0 / 422.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.415e-05/0.2538, allocations: 15.92 kB / 422.1 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2538, allocations: 3.938 kB / 422.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.2538, allocations: 0 / 422.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.2538, allocations: 0 / 422.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2539, allocations: 4 kB / 422.1 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004263/0.2543, allocations: 196.7 kB / 422.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.638e-05/0.2544, allocations: 120.7 kB / 422.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.669e-05/0.2545, allocations: 3.938 kB / 422.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2546, allocations: 15.98 kB / 422.5 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.2547, allocations: 11.98 kB / 422.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.2547, allocations: 8 kB / 422.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002687/0.255, allocations: 331.1 kB / 422.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.255, allocations: 0 / 422.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002991/0.2553, allocations: 51.91 kB / 422.9 MB, free: 14.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001433/0.2567, allocations: 0.4915 MB / 423.4 MB, free: 14.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000351/0.2571, allocations: 115.9 kB / 423.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2571, allocations: 0 / 423.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000148/0.2573, allocations: 59.91 kB / 423.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.2578, allocations: 70.06 kB / 423.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009636/0.2588, allocations: 0.566 MB / 424.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.2591, allocations: 0.7794 MB / 424.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001596/0.2592, allocations: 50.2 kB / 425 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.662e-05/0.2593, allocations: 31.42 kB / 425 MB, free: 12.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2593, allocations: 0 / 425 MB, free: 12.42 MB / 298.7 MB Notification: Performance of Templates: time 0.009667/0.269, allocations: 3.645 MB / 428.7 MB, free: 8.805 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches