Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_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.001352/0.001352, allocations: 114.2 kB / 16.63 MB, free: 6.812 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.0015/0.0015, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 38.03 kB / 300.1 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1208, allocations: 49.45 MB / 349.6 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003376/0.1243, allocations: 1.879 MB / 351.4 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.1259, allocations: 1.009 MB / 352.5 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-05/0.126, allocations: 0 / 352.5 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006016/0.1266, allocations: 155.7 kB / 352.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003099/0.1269, allocations: 116.4 kB / 352.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000432/0.1273, allocations: 159.2 kB / 352.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.1276, allocations: 207.4 kB / 353.1 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.988e-05/0.1277, allocations: 21.55 kB / 353.1 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.1279, allocations: 87.64 kB / 353.2 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.128, allocations: 87.66 kB / 353.3 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.417e-05/0.1281, allocations: 12 kB / 353.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.1282, allocations: 51.92 kB / 353.3 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.137e-05/0.1283, allocations: 59.75 kB / 353.4 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.928e-05/0.1284, allocations: 71.55 kB / 353.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.1287, allocations: 211.6 kB / 353.7 MB, free: 404 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1287, allocations: 0 / 353.7 MB, free: 404 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1287, allocations: 0 / 353.7 MB, free: 404 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1287, allocations: 0 / 353.7 MB, free: 404 kB / 286.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.0008535/0.1296, allocations: 0.5418 MB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.1296, allocations: 8.031 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.565e-05/0.1297, allocations: 16.75 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.13, allocations: 254.9 kB / 354.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.13, allocations: 7.938 kB / 354.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.13, allocations: 11.98 kB / 354.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002585/0.1303, allocations: 117.9 kB / 354.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1303, allocations: 0 / 354.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.1303, allocations: 4 kB / 354.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.1303, allocations: 4 kB / 354.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.1305, allocations: 47.91 kB / 354.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006337/0.1311, allocations: 0.6104 MB / 355.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002529/0.1314, allocations: 119.9 kB / 355.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.1315, allocations: 50.56 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1316, allocations: 12.05 kB / 355.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.1318, allocations: 121.8 kB / 355.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.1318, allocations: 0 / 355.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004257/0.1322, allocations: 173.4 kB / 355.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/0.1323, allocations: 136.5 kB / 355.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000277/0.1326, allocations: 284.9 kB / 356.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.1326, allocations: 29.7 kB / 356.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.136e-05/0.1327, allocations: 128.3 kB / 356.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/0.1327, allocations: 19.72 kB / 356.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.1328, allocations: 41.77 kB / 356.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1329, allocations: 330.8 kB / 356.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.84e-05/0.133, allocations: 35.92 kB / 356.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.1331, allocations: 85.64 kB / 356.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.1333, allocations: 100.8 kB / 356.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1333, allocations: 0 / 356.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002604/0.1336, allocations: 141.3 kB / 357.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1336, allocations: 7.984 kB / 357.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1336, allocations: 4 kB / 357.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.1337, allocations: 4.094 kB / 357.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.422e-05/0.1338, allocations: 12 kB / 357.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.1338, allocations: 7.938 kB / 357.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.1339, allocations: 11.98 kB / 357.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.1339, allocations: 11.94 kB / 357.1 MB, free: 12.61 MB / 302.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.0001295/0.134, allocations: 145.6 kB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.1341, allocations: 23.72 kB / 357.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.838e-05/0.1342, allocations: 25.7 kB / 357.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1342, allocations: 4 kB / 357.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.1342, allocations: 3.938 kB / 357.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1342, allocations: 4 kB / 357.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/0.1344, allocations: 241.5 kB / 357.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1344, allocations: 0 / 357.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.763e-05/0.1344, allocations: 4 kB / 357.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1344, allocations: 7.938 kB / 357.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.1345, allocations: 8.109 kB / 357.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.1345, allocations: 11.94 kB / 357.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1345, allocations: 3.938 kB / 357.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.1348, allocations: 178.5 kB / 357.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.758e-05/0.1348, allocations: 92.91 kB / 357.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.1349, allocations: 8 kB / 357.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.772e-05/0.135, allocations: 11.98 kB / 357.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.135, allocations: 23.91 kB / 357.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.1351, allocations: 4 kB / 357.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002031/0.1353, allocations: 212.5 kB / 358.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1353, allocations: 0 / 358.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.1355, allocations: 36 kB / 358.1 MB, free: 11.47 MB / 302.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.0008825/0.1364, allocations: 422.4 kB / 358.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002609/0.1367, allocations: 95.91 kB / 358.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1367, allocations: 0 / 358.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.1369, allocations: 59.89 kB / 358.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.1372, allocations: 54.94 kB / 358.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006124/0.1378, allocations: 388.9 kB / 359.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.1382, allocations: 0.728 MB / 359.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.749e-05/0.1382, allocations: 29.52 kB / 359.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/0.1383, allocations: 23.44 kB / 359.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1383, allocations: 0 / 359.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of Templates: time 0.005761/0.1441, allocations: 2.619 MB / 362.5 MB, free: 7.191 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches