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.001855/0.001855, allocations: 100 kB / 21.18 MB, free: 0.6484 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.002167/0.002167, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.439/1.439, allocations: 225.7 MB / 253.3 MB, free: 12.8 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.001656/0.001656, allocations: 47.92 kB / 371.6 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2396, allocations: 52.18 MB / 423.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004395/0.244, allocations: 2.682 MB / 426.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2454, allocations: 0.7011 MB / 427.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.2456, allocations: 11.94 kB / 427.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.2458, allocations: 47.5 kB / 427.3 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.2459, allocations: 95.19 kB / 427.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.2463, allocations: 95.81 kB / 427.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004197/0.2467, allocations: 378.3 kB / 427.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.2469, allocations: 75.69 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.2471, allocations: 143.5 kB / 428 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.2473, allocations: 135.4 kB / 428.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.493e-05/0.2474, allocations: 32 kB / 428.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.51e-05/0.2474, allocations: 28 kB / 428.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.977e-05/0.2475, allocations: 67.77 kB / 428.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.2476, allocations: 139.4 kB / 428.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004113/0.248, allocations: 373.5 kB / 428.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.248, allocations: 0 / 428.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.248, allocations: 0 / 428.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.248, allocations: 0 / 428.8 MB, free: 9.461 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.001011/0.2491, allocations: 0.5378 MB / 429.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2491, allocations: 12.03 kB / 429.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.248e-05/0.2492, allocations: 32.75 kB / 429.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.2496, allocations: 202.7 kB / 429.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.2497, allocations: 132 kB / 429.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.446e-05/0.2498, allocations: 32.36 kB / 429.7 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005263/0.2503, allocations: 349.4 kB / 430.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.2503, allocations: 0 / 430.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.2503, allocations: 16 kB / 430.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.2503, allocations: 8 kB / 430.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003462/0.2507, allocations: 194.4 kB / 430.3 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.2523, allocations: 0.9729 MB / 431.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.2526, allocations: 154.5 kB / 431.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.2527, allocations: 76.77 kB / 431.5 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.2528, allocations: 4 kB / 431.5 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003046/0.2531, allocations: 206.9 kB / 431.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.2531, allocations: 0 / 431.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001018/0.2541, allocations: 308.2 kB / 432 MB, free: 6.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/0.2542, allocations: 106.8 kB / 432.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.2544, allocations: 207.7 kB / 432.3 MB, free: 5.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.2544, allocations: 29.7 kB / 432.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.2545, allocations: 192.3 kB / 432.5 MB, free: 5.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.284e-05/0.2546, allocations: 71.44 kB / 432.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.436e-05/0.2547, allocations: 57.69 kB / 432.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2548, allocations: 334.8 kB / 433 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.255, allocations: 67.97 kB / 433 MB, free: 4.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.2552, allocations: 196.8 kB / 433.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.2555, allocations: 197.2 kB / 433.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2555, allocations: 4.031 kB / 433.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004502/0.2559, allocations: 264.5 kB / 433.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2559, allocations: 4 kB / 433.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.256, allocations: 7.984 kB / 433.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002811/0.2562, allocations: 53.05 kB / 433.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.2564, allocations: 51.91 kB / 433.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.2578, allocations: 1.445 MB / 435.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.2581, allocations: 32.03 kB / 435.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.2581, allocations: 8 kB / 435.3 MB, free: 2.504 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.0001647/0.2583, allocations: 153.7 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.2583, allocations: 27.8 kB / 435.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.648e-05/0.2583, allocations: 21.97 kB / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2583, allocations: 0 / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.2583, allocations: 0 / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.2583, allocations: 3.984 kB / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.2586, allocations: 221.2 kB / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2586, allocations: 7.984 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.2588, allocations: 31.92 kB / 435.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001868/0.259, allocations: 56.75 kB / 435.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.259, allocations: 4 kB / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.2602, allocations: 1.296 MB / 437.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2602, allocations: 0 / 437.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000635/0.2608, allocations: 324.6 kB / 437.4 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.665e-05/0.2609, allocations: 35.8 kB / 437.5 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.261, allocations: 11.94 kB / 437.5 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.2611, allocations: 20.11 kB / 437.5 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.912e-05/0.2612, allocations: 39.88 kB / 437.5 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.2612, allocations: 8 kB / 437.5 MB, free: 100 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001425/0.2614, allocations: 141.5 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2614, allocations: 0 / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003773/0.2617, allocations: 83.84 kB / 437.7 MB, free: 15.88 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.0001262/0.2619, allocations: 104.2 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005469/0.2624, allocations: 274.5 kB / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2624, allocations: 0 / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.2627, allocations: 190.5 kB / 438.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.263, allocations: 31.98 kB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.2646, allocations: 0.6929 MB / 439 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.2647, allocations: 150.9 kB / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.955e-05/0.2648, allocations: 19.44 kB / 439.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2648, allocations: 4 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of Templates: time 0.007111/0.2719, allocations: 4.205 MB / 443.4 MB, free: 10.15 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/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: 7.31599236279726]