Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001983/0.001983, allocations: 89.17 kB / 21.99 MB, free: 5.168 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.002357/0.002357, allocations: 166.3 kB / 25.25 MB, free: 3.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 158.6 MB / 187 MB, free: 6.238 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 55.92 kB / 299.4 MB, free: 6.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2474, allocations: 49.14 MB / 348.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00444/0.2518, allocations: 2.623 MB / 351.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.2535, allocations: 0.7523 MB / 351.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002731/0.2537, allocations: 7.938 kB / 351.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002322/0.254, allocations: 51.5 kB / 351.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.2543, allocations: 83.2 kB / 352 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.2547, allocations: 107.8 kB / 352.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005461/0.2552, allocations: 378.2 kB / 352.5 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.2554, allocations: 79.67 kB / 352.6 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/0.2557, allocations: 151.5 kB / 352.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.2559, allocations: 123.4 kB / 352.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.818e-05/0.256, allocations: 28 kB / 352.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.155e-05/0.2561, allocations: 32 kB / 352.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.177e-05/0.2562, allocations: 71.75 kB / 353 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.2564, allocations: 143.4 kB / 353.1 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004594/0.2568, allocations: 372.9 kB / 353.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2568, allocations: 0 / 353.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2568, allocations: 0 / 353.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.2568, allocations: 0 / 353.5 MB, free: 10.52 MB / 318.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.001184/0.258, allocations: 0.5378 MB / 354 MB, free: 9.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/0.2581, allocations: 19.92 kB / 354 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.2582, allocations: 36.75 kB / 354.1 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004694/0.2587, allocations: 202.7 kB / 354.3 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.2588, allocations: 128 kB / 354.4 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.2589, allocations: 28.38 kB / 354.4 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.2595, allocations: 357.4 kB / 354.8 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2595, allocations: 0 / 354.8 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.2595, allocations: 11.98 kB / 354.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.2595, allocations: 8 kB / 354.8 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003915/0.2599, allocations: 198.5 kB / 355 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.2617, allocations: 0.958 MB / 355.9 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.2621, allocations: 154.5 kB / 356.1 MB, free: 7.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.2622, allocations: 68.83 kB / 356.2 MB, free: 7.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.2622, allocations: 4 kB / 356.2 MB, free: 7.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.2626, allocations: 213.5 kB / 356.4 MB, free: 7.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.2626, allocations: 0 / 356.4 MB, free: 7.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001101/0.2637, allocations: 306.1 kB / 356.7 MB, free: 7.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.2637, allocations: 110.8 kB / 356.8 MB, free: 6.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.264, allocations: 203.8 kB / 357 MB, free: 6.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.264, allocations: 25.7 kB / 357 MB, free: 6.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.2641, allocations: 192.4 kB / 357.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.5e-05/0.2642, allocations: 67.42 kB / 357.3 MB, free: 6.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.2643, allocations: 65.48 kB / 357.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.2645, allocations: 338.8 kB / 357.7 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.2647, allocations: 63.97 kB / 357.7 MB, free: 6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.2649, allocations: 204 kB / 357.9 MB, free: 5.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.2652, allocations: 180.9 kB / 358.1 MB, free: 5.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2652, allocations: 0 / 358.1 MB, free: 5.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004881/0.2657, allocations: 275.8 kB / 358.4 MB, free: 5.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.2657, allocations: 8 kB / 358.4 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2657, allocations: 0 / 358.4 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002879/0.266, allocations: 57.03 kB / 358.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.2663, allocations: 55.91 kB / 358.5 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.2678, allocations: 1.438 MB / 359.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.2681, allocations: 39.98 kB / 360 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.2681, allocations: 12 kB / 360 MB, free: 3.566 MB / 318.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.0001918/0.2683, allocations: 157.7 kB / 360.1 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/0.2683, allocations: 23.8 kB / 360.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.482e-05/0.2684, allocations: 21.97 kB / 360.2 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2684, allocations: 4 kB / 360.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2684, allocations: 4 kB / 360.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2684, allocations: 7.922 kB / 360.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002943/0.2687, allocations: 209.2 kB / 360.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2687, allocations: 0 / 360.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000182/0.2689, allocations: 43.91 kB / 360.4 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001997/0.2691, allocations: 48.77 kB / 360.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.2691, allocations: 7.984 kB / 360.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.2705, allocations: 1.292 MB / 361.8 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2705, allocations: 0 / 361.8 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007125/0.2713, allocations: 329.6 kB / 362.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.476e-05/0.2713, allocations: 35.78 kB / 362.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.2714, allocations: 0 / 362.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.2716, allocations: 24.14 kB / 362.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.529e-05/0.2717, allocations: 35.88 kB / 362.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.2717, allocations: 4 kB / 362.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.2718, allocations: 144.2 kB / 362.3 MB, free: 1.031 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2718, allocations: 3.938 kB / 362.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004014/0.2722, allocations: 79.84 kB / 362.4 MB, free: 0.9492 MB / 318.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.0001439/0.2724, allocations: 105.5 kB / 362.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006191/0.273, allocations: 278.6 kB / 362.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.273, allocations: 0 / 362.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003341/0.2733, allocations: 195.5 kB / 363 MB, free: 356 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.2736, allocations: 35.91 kB / 363 MB, free: 320 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.2754, allocations: 0.6558 MB / 363.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.2756, allocations: 150.9 kB / 363.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.2757, allocations: 21.94 kB / 363.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.2758, allocations: 24.5 kB / 363.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2758, allocations: 0 / 363.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of Templates: time 0.00828/0.284, allocations: 2.889 MB / 366.8 MB, free: 12.52 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.787407104973681]