Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009369/0.0009369, allocations: 96.73 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 202.7 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 9.484 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002421, allocations: 8 kB / 308.4 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.08991, allocations: 51.51 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002196/0.09214, allocations: 1.56 MB / 361.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.09398, allocations: 1.141 MB / 362.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.09412, allocations: 0 / 362.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006073/0.09474, allocations: 167.6 kB / 362.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003746/0.09513, allocations: 143.5 kB / 362.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.09552, allocations: 123.4 kB / 363 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000277/0.09581, allocations: 219.3 kB / 363.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.09592, allocations: 25.53 kB / 363.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.09606, allocations: 75.62 kB / 363.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.0962, allocations: 83.62 kB / 363.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.09623, allocations: 4 kB / 363.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.09637, allocations: 47.91 kB / 363.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.021e-05/0.09645, allocations: 43.83 kB / 363.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.244e-05/0.09655, allocations: 89.25 kB / 363.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.09678, allocations: 167.9 kB / 363.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.09679, allocations: 0 / 363.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.0968, allocations: 4 kB / 363.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.09681, allocations: 0 / 363.8 MB, free: 9.168 MB / 302.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.0007945/0.09761, allocations: 0.508 MB / 364.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.09766, allocations: 11.97 kB / 364.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.972e-05/0.09773, allocations: 20.66 kB / 364.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.09804, allocations: 262.8 kB / 364.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.09808, allocations: 12.38 kB / 364.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.0981, allocations: 8.125 kB / 364.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.09837, allocations: 117.9 kB / 364.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.09839, allocations: 0 / 364.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.09842, allocations: 4 kB / 364.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.09843, allocations: 4 kB / 364.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.09858, allocations: 51.91 kB / 364.7 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006534/0.09924, allocations: 0.6143 MB / 365.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.0995, allocations: 127.9 kB / 365.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.09962, allocations: 54.55 kB / 365.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.09966, allocations: 3.984 kB / 365.5 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.09987, allocations: 117.9 kB / 365.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.09989, allocations: 3.938 kB / 365.7 MB, free: 7.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004357/0.1003, allocations: 173.4 kB / 365.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.1004, allocations: 140.5 kB / 366 MB, free: 6.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.1007, allocations: 296.9 kB / 366.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.1007, allocations: 29.7 kB / 366.3 MB, free: 6.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.453e-05/0.1008, allocations: 124.4 kB / 366.4 MB, free: 6.223 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.1009, allocations: 27.64 kB / 366.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.155e-05/0.1009, allocations: 17.72 kB / 366.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.101, allocations: 342.9 kB / 366.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.778e-05/0.1011, allocations: 31.98 kB / 366.8 MB, free: 5.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.1013, allocations: 89.92 kB / 366.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.1014, allocations: 100.8 kB / 367 MB, free: 5.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1015, allocations: 0 / 367 MB, free: 5.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00027/0.1017, allocations: 145.3 kB / 367.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.1018, allocations: 4.094 kB / 367.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.1018, allocations: 8 kB / 367.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.1018, allocations: 0 / 367.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-05/0.1019, allocations: 19.92 kB / 367.2 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.1019, allocations: 4 kB / 367.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.102, allocations: 19.84 kB / 367.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.102, allocations: 11.98 kB / 367.2 MB, free: 5.359 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.0001268/0.1022, allocations: 145.7 kB / 367.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.535e-05/0.1022, allocations: 23.8 kB / 367.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.166e-05/0.1023, allocations: 21.72 kB / 367.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.1023, allocations: 3.984 kB / 367.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1023, allocations: 0 / 367.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1023, allocations: 7.938 kB / 367.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002202/0.1025, allocations: 253.4 kB / 367.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1025, allocations: 4 kB / 367.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.663e-05/0.1026, allocations: 4 kB / 367.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1026, allocations: 0 / 367.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.1026, allocations: 4 kB / 367.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1026, allocations: 4 kB / 367.7 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1026, allocations: 128 / 367.7 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.1029, allocations: 190.4 kB / 367.9 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.938e-05/0.103, allocations: 100.8 kB / 368 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.103, allocations: 8 kB / 368 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.1032, allocations: 15.98 kB / 368 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.1032, allocations: 19.91 kB / 368 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.1032, allocations: 4 kB / 368 MB, free: 4.465 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002079/0.1035, allocations: 216.5 kB / 368.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1035, allocations: 0 / 368.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.1037, allocations: 39.98 kB / 368.3 MB, free: 4.211 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.0009507/0.1047, allocations: 423.4 kB / 368.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00028/0.105, allocations: 99.83 kB / 368.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.105, allocations: 0 / 368.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1051, allocations: 51.92 kB / 368.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.1055, allocations: 53.72 kB / 368.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006928/0.1062, allocations: 421.9 kB / 369.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.1065, allocations: 0.7361 MB / 370 MB, free: 2.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.942e-05/0.1066, allocations: 19.44 kB / 370 MB, free: 2.5 MB / 302.1 MB Notification: Performance of SimCode: time 6.12e-07/0.1066, allocations: 0 / 370 MB, free: 2.5 MB / 302.1 MB Notification: Performance of Templates: time 0.1639/0.2705, allocations: 2.887 MB / 372.9 MB, free: 18.51 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches