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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 123.4 kB / 18.46 MB, free: 4.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 192.3 kB / 21.4 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 225.6 MB / 249.8 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 55.91 kB / 366.8 MB, free: 348 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09879/0.1003, allocations: 52.14 MB / 418.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003237/0.1035, allocations: 1.847 MB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.1053, allocations: 1.04 MB / 421.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.317e-05/0.1054, allocations: 4 kB / 421.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006088/0.106, allocations: 171.4 kB / 422 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.1063, allocations: 123.5 kB / 422.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.1068, allocations: 182.8 kB / 422.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.107, allocations: 199.4 kB / 422.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.1071, allocations: 13.55 kB / 422.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.1073, allocations: 87.62 kB / 422.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.1074, allocations: 95.58 kB / 422.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.945e-05/0.1075, allocations: 12 kB / 422.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.1076, allocations: 51.98 kB / 422.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.299e-05/0.1077, allocations: 55.75 kB / 422.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.1078, allocations: 75.55 kB / 422.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.1081, allocations: 219.1 kB / 423.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1081, allocations: 0 / 423.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1081, allocations: 0 / 423.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1081, allocations: 3.938 kB / 423.1 MB, free: 7.945 MB / 350.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.0009303/0.1091, allocations: 0.5272 MB / 423.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.1091, allocations: 16.03 kB / 423.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.522e-05/0.1092, allocations: 20.8 kB / 423.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.1095, allocations: 262.8 kB / 423.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.1095, allocations: 4 kB / 423.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.1096, allocations: 8 kB / 423.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.1098, allocations: 121.9 kB / 424 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1098, allocations: 0 / 424 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1098, allocations: 0 / 424 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.1098, allocations: 0 / 424 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.11, allocations: 51.91 kB / 424.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007172/0.1107, allocations: 0.6027 MB / 424.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.111, allocations: 119.9 kB / 424.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1111, allocations: 46.56 kB / 424.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.1112, allocations: 4 kB / 424.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.1114, allocations: 129.8 kB / 425 MB, free: 5.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.1114, allocations: 0 / 425 MB, free: 5.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004749/0.1119, allocations: 173.4 kB / 425.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.112, allocations: 144.4 kB / 425.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.1123, allocations: 285 kB / 425.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1124, allocations: 29.7 kB / 425.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.959e-05/0.1125, allocations: 128.2 kB / 425.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.1125, allocations: 27.84 kB / 425.8 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/0.1125, allocations: 29.72 kB / 425.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1127, allocations: 338.9 kB / 426.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.096e-05/0.1128, allocations: 27.98 kB / 426.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.1129, allocations: 89.86 kB / 426.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.1131, allocations: 100.8 kB / 426.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1131, allocations: 0 / 426.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002865/0.1134, allocations: 137.5 kB / 426.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1134, allocations: 8 kB / 426.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.1134, allocations: 3.938 kB / 426.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1135, allocations: 4 kB / 426.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.363e-05/0.1136, allocations: 24.02 kB / 426.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.1136, allocations: 4 kB / 426.5 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1137, allocations: 15.94 kB / 426.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.1137, allocations: 4 kB / 426.5 MB, free: 4.148 MB / 350.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.0001445/0.1138, allocations: 149.6 kB / 426.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.1139, allocations: 23.86 kB / 426.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.597e-05/0.1139, allocations: 21.72 kB / 426.7 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.1139, allocations: 7.922 kB / 426.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1139, allocations: 8 kB / 426.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1139, allocations: 0 / 426.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/0.1142, allocations: 237.5 kB / 427 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1142, allocations: 7.938 kB / 427 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.274e-05/0.1142, allocations: 11.97 kB / 427 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1142, allocations: 128 / 427 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.1142, allocations: 12 kB / 427 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1142, allocations: 3.938 kB / 427 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1142, allocations: 0 / 427 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000323/0.1146, allocations: 174.6 kB / 427.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.635e-05/0.1147, allocations: 101 kB / 427.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.1147, allocations: 0 / 427.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.1148, allocations: 19.92 kB / 427.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.1148, allocations: 15.98 kB / 427.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1149, allocations: 8 kB / 427.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002203/0.1151, allocations: 208.5 kB / 427.5 MB, free: 3.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1151, allocations: 0 / 427.5 MB, free: 3.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.1154, allocations: 39.92 kB / 427.6 MB, free: 3.016 MB / 350.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.001471/0.1168, allocations: 424.7 kB / 428 MB, free: 2.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002789/0.1171, allocations: 88.02 kB / 428.1 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1171, allocations: 4.062 kB / 428.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.1172, allocations: 47.92 kB / 428.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.1176, allocations: 51.8 kB / 428.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006856/0.1183, allocations: 386.1 kB / 428.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.1187, allocations: 0.7319 MB / 429.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.1187, allocations: 23.44 kB / 429.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1187, allocations: 3.938 kB / 429.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of Templates: time 0.005264/0.124, allocations: 2.909 MB / 432.2 MB, free: 14.49 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.95715391705744]