Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 205.8 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupply,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|dcPowerSupply.P",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupply,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|dcPowerSupply.P",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 55.92 kB / 378.2 MB, free: 2.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2575, allocations: 53.37 MB / 431.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupply): time 0.003678/0.2612, allocations: 1.989 MB / 433.6 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.2623, allocations: 0.5377 MB / 434.1 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.828e-05/0.2624, allocations: 4 kB / 434.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.2625, allocations: 19.78 kB / 434.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.2626, allocations: 35.7 kB / 434.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2629, allocations: 87.77 kB / 434.3 MB, free: 4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.2632, allocations: 211.3 kB / 434.5 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2633, allocations: 36.91 kB / 434.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.2634, allocations: 79.77 kB / 434.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000211/0.2636, allocations: 95.64 kB / 434.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.324e-05/0.2637, allocations: 16 kB / 434.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.173e-05/0.2637, allocations: 23.98 kB / 434.7 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.993e-05/0.2638, allocations: 27.92 kB / 434.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2639, allocations: 75.7 kB / 434.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.2642, allocations: 185.9 kB / 435 MB, free: 3.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2642, allocations: 0 / 435 MB, free: 3.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2642, allocations: 0 / 435 MB, free: 3.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.2642, allocations: 3.938 kB / 435 MB, free: 3.262 MB / 334.1 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.0007837/0.265, allocations: 419.4 kB / 435.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.265, allocations: 8.031 kB / 435.4 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.2652, allocations: 20.84 kB / 435.4 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.2655, allocations: 160.9 kB / 435.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.2656, allocations: 145.1 kB / 435.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.2656, allocations: 12.38 kB / 435.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000361/0.266, allocations: 216.4 kB / 436 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.266, allocations: 0 / 436 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.266, allocations: 4 kB / 436 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.266, allocations: 4 kB / 436 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.2664, allocations: 107.8 kB / 436.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008654/0.2672, allocations: 423.1 kB / 436.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.2676, allocations: 106.7 kB / 436.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2677, allocations: 44.83 kB / 436.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.2678, allocations: 0 / 436.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.2678, allocations: 42.56 kB / 436.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 9.12e-07/0.2678, allocations: 0 / 436.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000875/0.2687, allocations: 222.3 kB / 436.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.2687, allocations: 51.78 kB / 436.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.2689, allocations: 145.8 kB / 437.1 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.2689, allocations: 25.7 kB / 437.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.707e-05/0.269, allocations: 120 kB / 437.2 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/0.269, allocations: 39.67 kB / 437.3 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/0.2691, allocations: 33.7 kB / 437.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2693, allocations: 322.8 kB / 437.6 MB, free: 432 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.2695, allocations: 89.67 kB / 437.7 MB, free: 336 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.2697, allocations: 108.2 kB / 437.8 MB, free: 212 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.27, allocations: 160.2 kB / 438 MB, free: 36 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.27, allocations: 0 / 438 MB, free: 36 kB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006998/0.2707, allocations: 289.6 kB / 438.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.292e-05/0.2708, allocations: 41.69 kB / 438.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.2708, allocations: 0 / 438.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002584/0.271, allocations: 76.88 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.573e-05/0.2711, allocations: 15.98 kB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/0.2729, allocations: 1.483 MB / 439.9 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003681/0.2733, allocations: 48.05 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.2733, allocations: 8 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (dcPowerSupply.cp,dcPowerSupply.cc,dcPowerSupply.cv) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.2735, allocations: 117.8 kB / 440 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.2735, allocations: 15.91 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000431/0.2739, allocations: 167.1 kB / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2739, allocations: 4 kB / 440.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.2739, allocations: 3.938 kB / 440.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.2739, allocations: 0 / 440.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.2741, allocations: 149.3 kB / 440.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2741, allocations: 4 kB / 440.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.327e-05/0.2742, allocations: 11.98 kB / 440.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/0.2744, allocations: 76.81 kB / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.2744, allocations: 3.938 kB / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.2761, allocations: 1.475 MB / 441.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2761, allocations: 4.062 kB / 441.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004233/0.2765, allocations: 252.4 kB / 442.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.032e-05/0.2765, allocations: 11.89 kB / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.2765, allocations: 0 / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.2767, allocations: 16.17 kB / 442.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.504e-05/0.2768, allocations: 15.97 kB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2768, allocations: 8 kB / 442.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.95e-05/0.2768, allocations: 109.5 kB / 442.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2768, allocations: 4 kB / 442.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.2772, allocations: 51.89 kB / 442.4 MB, free: 11.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (dcPowerSupply.cv,dcPowerSupply.cc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001251/0.2773, allocations: 95.25 kB / 442.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007125/0.278, allocations: 339.6 kB / 442.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.278, allocations: 0 / 442.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000305/0.2783, allocations: 170.7 kB / 443 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.2786, allocations: 27.91 kB / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006023/0.2792, allocations: 282.8 kB / 443.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.2793, allocations: 93.62 kB / 443.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.071e-05/0.2794, allocations: 12.42 kB / 443.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.2794, allocations: 11.91 kB / 443.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2794, allocations: 0 / 443.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Templates: time 0.007433/0.2869, allocations: 3.197 MB / 446.6 MB, free: 7.039 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupply/DemoPowerSupply.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupply.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: 4.683448709081858]