Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001513/0.001513, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.455/1.455, allocations: 230.4 MB / 255.4 MB, free: 15.18 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 63.84 kB / 374.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1129, allocations: 53.32 MB / 428.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004549/0.1174, allocations: 2.896 MB / 431 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.1191, allocations: 0.775 MB / 431.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.1193, allocations: 11.94 kB / 431.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.1195, allocations: 51.5 kB / 431.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.1197, allocations: 87.19 kB / 431.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.1201, allocations: 99.77 kB / 432 MB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004227/0.1205, allocations: 378.4 kB / 432.4 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2096/0.3302, allocations: 75.81 kB / 432.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.3305, allocations: 138.1 kB / 432.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002454/0.3307, allocations: 153.4 kB / 432.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.218e-05/0.3308, allocations: 30.06 kB / 432.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.552e-05/0.3308, allocations: 30.38 kB / 432.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.252e-05/0.3309, allocations: 74.42 kB / 432.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.3311, allocations: 158.5 kB / 433 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004408/0.3315, allocations: 372.9 kB / 433.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3315, allocations: 0 / 433.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3315, allocations: 2.344 kB / 433.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3315, allocations: 0 / 433.4 MB, free: 8.078 MB / 350.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.0009373/0.3325, allocations: 0.6058 MB / 434 MB, free: 7.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3325, allocations: 10.06 kB / 434 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.473e-05/0.3326, allocations: 42.67 kB / 434 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.3329, allocations: 264 kB / 434.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.333, allocations: 77.45 kB / 434.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.333, allocations: 30.89 kB / 434.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.3335, allocations: 300.2 kB / 434.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3335, allocations: 7.281 kB / 434.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.3335, allocations: 16.69 kB / 434.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.3335, allocations: 5.594 kB / 434.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002982/0.3338, allocations: 191.9 kB / 434.9 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.3352, allocations: 1.123 MB / 436 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.3355, allocations: 147.3 kB / 436.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.3356, allocations: 76.55 kB / 436.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.3357, allocations: 6.406 kB / 436.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.3359, allocations: 151.5 kB / 436.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.3359, allocations: 0 / 436.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.3369, allocations: 396 kB / 436.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.337, allocations: 106.3 kB / 436.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.3371, allocations: 222 kB / 437.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.3372, allocations: 31.58 kB / 437.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.546e-05/0.3372, allocations: 184.2 kB / 437.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.61e-05/0.3373, allocations: 67.33 kB / 437.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.629e-05/0.3374, allocations: 57.75 kB / 437.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.875e-05/0.3375, allocations: 339.3 kB / 437.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.3376, allocations: 67.27 kB / 437.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.3377, allocations: 147 kB / 438 MB, free: 5.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.338, allocations: 188.2 kB / 438.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.338, allocations: 7.656 kB / 438.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004175/0.3384, allocations: 273.3 kB / 438.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3384, allocations: 6.906 kB / 438.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3384, allocations: 3.125 kB / 438.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.3387, allocations: 56.92 kB / 438.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.3389, allocations: 49.19 kB / 438.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.34, allocations: 1.567 MB / 440.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.3402, allocations: 39.91 kB / 440.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.3403, allocations: 18.2 kB / 440.2 MB, free: 3.871 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.0001203/0.3404, allocations: 152.9 kB / 440.3 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.3404, allocations: 26.27 kB / 440.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.465e-05/0.3405, allocations: 28.59 kB / 440.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.3405, allocations: 2.125 kB / 440.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.3405, allocations: 0 / 440.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3405, allocations: 2.375 kB / 440.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003078/0.3408, allocations: 325.6 kB / 440.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3408, allocations: 6.844 kB / 440.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.341, allocations: 30.72 kB / 440.7 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.3411, allocations: 53.67 kB / 440.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.3412, allocations: 3.672 kB / 440.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000836/0.342, allocations: 1.425 MB / 442.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.342, allocations: 0 / 442.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005744/0.3426, allocations: 319.5 kB / 442.5 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.913e-05/0.3427, allocations: 113 kB / 442.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.3427, allocations: 9.891 kB / 442.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.3428, allocations: 22.03 kB / 442.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.482e-05/0.3429, allocations: 34.94 kB / 442.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.343, allocations: 5.594 kB / 442.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.3431, allocations: 162.8 kB / 442.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3431, allocations: 0 / 442.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003727/0.3435, allocations: 81.72 kB / 442.9 MB, free: 1.66 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.0001139/0.3436, allocations: 106.4 kB / 443 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005156/0.3441, allocations: 285.3 kB / 443.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3441, allocations: 1.219 kB / 443.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.3443, allocations: 187.6 kB / 443.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3446, allocations: 39.44 kB / 443.5 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.3461, allocations: 0.6922 MB / 444.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001957/0.3463, allocations: 0.7664 MB / 445 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.158e-05/0.3464, allocations: 21.39 kB / 445 MB, free: 136 kB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3464, allocations: 0 / 445 MB, free: 136 kB / 350.1 MB Notification: Performance of Templates: time 0.007848/0.3542, allocations: 4.217 MB / 449.2 MB, free: 15.81 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.312359100906178]