Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001613/0.001613, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001705/0.001705, allocations: 213.1 kB / 24.48 MB, free: 3.957 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.453/1.453, allocations: 230.6 MB / 258.2 MB, free: 7.738 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 51.92 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2401, allocations: 53.36 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004193/0.2442, allocations: 2.707 MB / 435 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2456, allocations: 0.7245 MB / 435.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.2458, allocations: 7.938 kB / 435.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001728/0.2459, allocations: 51.5 kB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.2461, allocations: 95.17 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000339/0.2465, allocations: 103.8 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.2469, allocations: 370.4 kB / 436.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.2471, allocations: 85.66 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.2472, allocations: 147.5 kB / 436.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.2474, allocations: 147.4 kB / 436.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.684e-05/0.2475, allocations: 36 kB / 436.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.897e-05/0.2475, allocations: 32 kB / 436.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.658e-05/0.2476, allocations: 67.75 kB / 436.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.2478, allocations: 139.4 kB / 437 MB, free: 2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004022/0.2482, allocations: 370.2 kB / 437.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.2482, allocations: 0 / 437.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.2482, allocations: 3.984 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2482, allocations: 0 / 437.4 MB, free: 1.637 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.2492, allocations: 0.5339 MB / 437.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.2492, allocations: 12.03 kB / 437.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.97e-05/0.2493, allocations: 36.7 kB / 438 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.2497, allocations: 206.7 kB / 438.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.2498, allocations: 132 kB / 438.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.2498, allocations: 32.36 kB / 438.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005162/0.2504, allocations: 357.4 kB / 438.7 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2504, allocations: 0 / 438.7 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.2504, allocations: 16 kB / 438.7 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.2504, allocations: 8 kB / 438.7 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.2508, allocations: 186.5 kB / 438.9 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.2524, allocations: 0.9651 MB / 439.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.2527, allocations: 150.5 kB / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.2528, allocations: 76.83 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.2529, allocations: 7.938 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.2531, allocations: 205.2 kB / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.432e-06/0.2531, allocations: 0 / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009975/0.2541, allocations: 309.5 kB / 440.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.2542, allocations: 106.8 kB / 440.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.2544, allocations: 203.8 kB / 440.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.2544, allocations: 41.64 kB / 440.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.2546, allocations: 176.4 kB / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.94e-05/0.2546, allocations: 79.41 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.034e-05/0.2547, allocations: 57.66 kB / 441.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.2549, allocations: 334.8 kB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.255, allocations: 67.97 kB / 441.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.2552, allocations: 192 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002799/0.2555, allocations: 196.2 kB / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2555, allocations: 0 / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004386/0.2559, allocations: 268.5 kB / 442.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.256, allocations: 4 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.256, allocations: 4 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002627/0.2562, allocations: 57.03 kB / 442.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.2564, allocations: 51.91 kB / 442.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/0.2579, allocations: 1.454 MB / 443.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.2581, allocations: 31.83 kB / 443.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.2581, allocations: 12 kB / 443.9 MB, free: 10.68 MB / 350.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.0001603/0.2583, allocations: 145.7 kB / 444 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.789e-05/0.2583, allocations: 27.83 kB / 444 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.68e-05/0.2584, allocations: 21.97 kB / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2584, allocations: 96 / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.2584, allocations: 4 kB / 444.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.2584, allocations: 7.984 kB / 444.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000263/0.2586, allocations: 213.2 kB / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2586, allocations: 0 / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.2588, allocations: 31.92 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001862/0.259, allocations: 60.75 kB / 444.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.259, allocations: 7.984 kB / 444.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.2602, allocations: 1.295 MB / 445.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2602, allocations: 0 / 445.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006388/0.2608, allocations: 325.8 kB / 446 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.066e-05/0.2609, allocations: 35.84 kB / 446 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.2609, allocations: 8 kB / 446 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.2611, allocations: 15.98 kB / 446.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.254e-05/0.2612, allocations: 43.81 kB / 446.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.2612, allocations: 7.938 kB / 446.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.2613, allocations: 145.5 kB / 446.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2613, allocations: 0 / 446.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003545/0.2617, allocations: 83.84 kB / 446.3 MB, free: 8.059 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.0001351/0.2618, allocations: 116.2 kB / 446.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005352/0.2623, allocations: 274.5 kB / 446.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2623, allocations: 0 / 446.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.2626, allocations: 190.5 kB / 446.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.2629, allocations: 48.12 kB / 447 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.2644, allocations: 0.6791 MB / 447.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.2646, allocations: 154.7 kB / 447.8 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.595e-05/0.2646, allocations: 19.44 kB / 447.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2646, allocations: 0 / 447.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of Templates: time 0.006533/0.2712, allocations: 4.208 MB / 452 MB, free: 2.312 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.4078168729902245]