Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001784/0.001784, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001572/0.001572, allocations: 187.7 kB / 23.7 MB, free: 4.191 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.446/1.446, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.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.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 48.08 kB / 370.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2667, allocations: 52.18 MB / 423.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004163/0.2709, allocations: 2.678 MB / 425.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2723, allocations: 0.7049 MB / 426.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.2724, allocations: 4 kB / 426.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001861/0.2726, allocations: 59.44 kB / 426.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.2728, allocations: 83.2 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.2732, allocations: 107.8 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.2736, allocations: 366.4 kB / 427.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.2738, allocations: 83.33 kB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.274, allocations: 139.6 kB / 427.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.2742, allocations: 139.2 kB / 427.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.394e-05/0.2743, allocations: 28 kB / 427.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.854e-05/0.2743, allocations: 32 kB / 427.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.601e-05/0.2744, allocations: 67.77 kB / 427.5 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.2746, allocations: 143.4 kB / 427.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004435/0.275, allocations: 365.1 kB / 428 MB, free: 9.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.275, allocations: 0 / 428 MB, free: 9.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.275, allocations: 0 / 428 MB, free: 9.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.275, allocations: 0 / 428 MB, free: 9.484 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0011/0.2761, allocations: 0.5417 MB / 428.6 MB, free: 8.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.2762, allocations: 8.031 kB / 428.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.205e-05/0.2763, allocations: 36.75 kB / 428.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.2767, allocations: 214.6 kB / 428.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/0.2768, allocations: 128 kB / 429 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.2769, allocations: 24.38 kB / 429 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.2774, allocations: 357.4 kB / 429.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2775, allocations: 3.938 kB / 429.3 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.2775, allocations: 16 kB / 429.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.976e-06/0.2775, allocations: 8 kB / 429.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003626/0.2779, allocations: 186.5 kB / 429.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.2795, allocations: 0.9689 MB / 430.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.2799, allocations: 150.6 kB / 430.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.28, allocations: 76.83 kB / 430.7 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.2801, allocations: 3.984 kB / 430.7 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.2805, allocations: 209.2 kB / 430.9 MB, free: 6.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.2805, allocations: 0 / 430.9 MB, free: 6.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001032/0.2815, allocations: 300.1 kB / 431.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.679e-05/0.2816, allocations: 114.8 kB / 431.4 MB, free: 5.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.2818, allocations: 203.8 kB / 431.5 MB, free: 5.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.2818, allocations: 33.64 kB / 431.6 MB, free: 5.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.282, allocations: 184.4 kB / 431.8 MB, free: 5.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.704e-05/0.282, allocations: 75.41 kB / 431.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.243e-05/0.2821, allocations: 61.7 kB / 431.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2823, allocations: 334.8 kB / 432.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.2824, allocations: 67.97 kB / 432.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.2827, allocations: 196.8 kB / 432.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.283, allocations: 193.2 kB / 432.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.283, allocations: 4.031 kB / 432.7 MB, free: 4.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004557/0.2834, allocations: 264.5 kB / 432.9 MB, free: 4.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.2834, allocations: 8 kB / 432.9 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2834, allocations: 0 / 432.9 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002827/0.2837, allocations: 61.03 kB / 433 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.2839, allocations: 47.92 kB / 433 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.2854, allocations: 1.449 MB / 434.5 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.2856, allocations: 36.06 kB / 434.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.2857, allocations: 12 kB / 434.5 MB, free: 2.516 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001793/0.2858, allocations: 149.7 kB / 434.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-05/0.2859, allocations: 23.8 kB / 434.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.31e-05/0.2859, allocations: 25.95 kB / 434.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2859, allocations: 4 kB / 434.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2859, allocations: 0 / 434.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2859, allocations: 0 / 434.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.2862, allocations: 217.2 kB / 435 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2862, allocations: 4 kB / 435 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.2864, allocations: 35.92 kB / 435 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/0.2866, allocations: 56.75 kB / 435 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2866, allocations: 4 kB / 435.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.2878, allocations: 1.288 MB / 436.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2878, allocations: 0 / 436.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006459/0.2884, allocations: 332.9 kB / 436.7 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.356e-05/0.2885, allocations: 31.81 kB / 436.7 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.2885, allocations: 4 kB / 436.7 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.2887, allocations: 24.2 kB / 436.7 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.472e-05/0.2888, allocations: 31.88 kB / 436.8 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.2888, allocations: 4 kB / 436.8 MB, free: 140 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001963/0.289, allocations: 145.6 kB / 436.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.289, allocations: 0 / 436.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004295/0.2894, allocations: 87.72 kB / 437 MB, free: 15.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001495/0.2896, allocations: 104.2 kB / 437.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005734/0.2902, allocations: 274.5 kB / 437.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2902, allocations: 3.938 kB / 437.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003173/0.2905, allocations: 198.5 kB / 437.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.2908, allocations: 27.98 kB / 437.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.2926, allocations: 0.6678 MB / 438.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.2927, allocations: 150.9 kB / 438.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.2928, allocations: 21.94 kB / 438.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.689e-05/0.2929, allocations: 19.44 kB / 438.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2929, allocations: 0 / 438.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of Templates: time 0.007572/0.3005, allocations: 3.196 MB / 441.6 MB, free: 11.23 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.736370541155338]