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.001795/0.001795, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 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.001576/0.001576, allocations: 204.7 kB / 25.23 MB, free: 3.551 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.559/1.559, allocations: 207.6 MB / 236 MB, free: 9.988 MB / 190.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.001869/0.001869, allocations: 54.58 kB / 348.5 MB, free: 9.602 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3294, allocations: 49.16 MB / 397.6 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004381/0.3338, allocations: 2.854 MB / 400.5 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.3352, allocations: 0.779 MB / 401.2 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.3354, allocations: 8.375 kB / 401.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.3356, allocations: 52.88 kB / 401.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.3357, allocations: 94.3 kB / 401.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.3361, allocations: 102.5 kB / 401.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004409/0.3365, allocations: 381 kB / 401.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.3367, allocations: 83.42 kB / 402 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.3369, allocations: 145.1 kB / 402.1 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.3372, allocations: 157.4 kB / 402.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.294e-05/0.3372, allocations: 30.59 kB / 402.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.3373, allocations: 30.53 kB / 402.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.565e-05/0.3374, allocations: 66.56 kB / 402.4 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.3375, allocations: 166.6 kB / 402.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.338, allocations: 367.8 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.338, allocations: 1.125 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.338, allocations: 0 / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.338, allocations: 0 / 402.9 MB, free: 6.082 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.001047/0.3391, allocations: 0.5399 MB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.3391, allocations: 16.88 kB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.756e-05/0.3392, allocations: 39.34 kB / 403.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004117/0.3396, allocations: 200.3 kB / 403.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.706e-05/0.3397, allocations: 136.6 kB / 403.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.3398, allocations: 27.22 kB / 403.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.3403, allocations: 300 kB / 404.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3403, allocations: 0 / 404.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.3403, allocations: 11.84 kB / 404.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.3403, allocations: 7.906 kB / 404.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003819/0.3407, allocations: 194.2 kB / 404.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.3423, allocations: 1.09 MB / 405.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.3426, allocations: 148.5 kB / 405.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.3428, allocations: 71.97 kB / 405.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.3428, allocations: 2.188 kB / 405.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.3431, allocations: 159.3 kB / 405.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.3431, allocations: 0 / 405.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001049/0.3441, allocations: 309.7 kB / 406.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.3442, allocations: 106.6 kB / 406.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.3444, allocations: 226 kB / 406.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3444, allocations: 31.89 kB / 406.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/0.3445, allocations: 184 kB / 406.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.001e-05/0.3446, allocations: 66.91 kB / 406.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.315e-05/0.3447, allocations: 63.88 kB / 406.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.118e-05/0.3447, allocations: 344 kB / 407.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.3449, allocations: 62.53 kB / 407.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.345, allocations: 145.6 kB / 407.3 MB, free: 2.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.3453, allocations: 187.8 kB / 407.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3453, allocations: 0 / 407.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004381/0.3457, allocations: 277.8 kB / 407.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3457, allocations: 5.5 kB / 407.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3458, allocations: 1.375 kB / 407.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002901/0.346, allocations: 59.62 kB / 407.8 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.3463, allocations: 49.77 kB / 407.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.3473, allocations: 1.464 MB / 409.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.3475, allocations: 38 kB / 409.4 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.3476, allocations: 13.05 kB / 409.4 MB, free: 1.172 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.0001273/0.3477, allocations: 149.7 kB / 409.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/0.3477, allocations: 23.66 kB / 409.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.63e-05/0.3478, allocations: 30.73 kB / 409.6 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3478, allocations: 6.734 kB / 409.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3478, allocations: 0 / 409.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3478, allocations: 5.344 kB / 409.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.3481, allocations: 298 kB / 409.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3481, allocations: 3.938 kB / 409.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.3483, allocations: 30.47 kB / 409.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001858/0.3484, allocations: 56.05 kB / 410 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.3485, allocations: 6.984 kB / 410 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.3496, allocations: 1.316 MB / 411.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3496, allocations: 1.094 kB / 411.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007235/0.3503, allocations: 334.3 kB / 411.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.167e-05/0.3504, allocations: 37.64 kB / 411.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.3504, allocations: 6.531 kB / 411.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.3506, allocations: 18 kB / 411.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.3507, allocations: 34.31 kB / 411.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.3507, allocations: 9.562 kB / 411.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002254/0.3509, allocations: 161.8 kB / 411.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3509, allocations: 0 / 411.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003802/0.3513, allocations: 79.56 kB / 412 MB, free: 15.09 MB / 334.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.00014/0.3515, allocations: 101.1 kB / 412.1 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006175/0.3521, allocations: 283.8 kB / 412.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3521, allocations: 0 / 412.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.3524, allocations: 188 kB / 412.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.3527, allocations: 32.45 kB / 412.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.3545, allocations: 0.6922 MB / 413.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.3549, allocations: 0.7578 MB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.3e-05/0.355, allocations: 26.45 kB / 414 MB, free: 13.53 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.355, allocations: 0 / 414 MB, free: 13.53 MB / 334.1 MB Notification: Performance of Templates: time 0.008082/0.3631, allocations: 4.211 MB / 418.3 MB, free: 11.53 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 -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: 8.031838793074712]