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.001404/0.001404, allocations: 103.6 kB / 21.18 MB, free: 332 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.001495/0.001495, allocations: 212 kB / 24.47 MB, free: 3.547 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.545/1.545, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.001962/0.001962, allocations: 60.38 kB / 347.7 MB, free: 9.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3143, allocations: 49.15 MB / 396.9 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005774/0.3201, allocations: 2.627 MB / 399.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.3222, allocations: 0.7493 MB / 400.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.3224, allocations: 9.594 kB / 400.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.3227, allocations: 47.42 kB / 400.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002998/0.323, allocations: 90.64 kB / 400.4 MB, free: 7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.3235, allocations: 95.98 kB / 400.5 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006573/0.3242, allocations: 383.8 kB / 400.8 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.3245, allocations: 88.09 kB / 400.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.3248, allocations: 145.7 kB / 401.1 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.3251, allocations: 129.1 kB / 401.2 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.255e-05/0.3252, allocations: 29.41 kB / 401.2 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.3253, allocations: 31 kB / 401.3 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.3255, allocations: 74.19 kB / 401.3 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002836/0.3257, allocations: 138.1 kB / 401.5 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007786/0.3265, allocations: 368.9 kB / 401.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3265, allocations: 1.094 kB / 401.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3265, allocations: 0 / 401.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3265, allocations: 4 kB / 401.8 MB, free: 6.312 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.00151/0.328, allocations: 0.5396 MB / 402.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.871e-05/0.3281, allocations: 12.17 kB / 402.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.3282, allocations: 39.28 kB / 402.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.3288, allocations: 208 kB / 402.6 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.3289, allocations: 125.9 kB / 402.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.3e-05/0.329, allocations: 32.19 kB / 402.8 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008674/0.3299, allocations: 353.6 kB / 403.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.3299, allocations: 0 / 403.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-05/0.33, allocations: 12.44 kB / 403.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.33, allocations: 6.531 kB / 403.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006248/0.3306, allocations: 188.9 kB / 403.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002579/0.3332, allocations: 0.9699 MB / 404.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.3338, allocations: 144.7 kB / 404.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.334, allocations: 75.11 kB / 404.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.3341, allocations: 5.594 kB / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004854/0.3345, allocations: 217 kB / 404.7 MB, free: 4.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.885e-06/0.3345, allocations: 0 / 404.7 MB, free: 4.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001746/0.3363, allocations: 304.9 kB / 405 MB, free: 4.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.3364, allocations: 107.1 kB / 405.1 MB, free: 4.008 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.3367, allocations: 200.3 kB / 405.3 MB, free: 3.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.3367, allocations: 32.78 kB / 405.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.3368, allocations: 187.6 kB / 405.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.654e-05/0.3369, allocations: 70.75 kB / 405.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3371, allocations: 61.61 kB / 405.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.865e-05/0.3372, allocations: 334.6 kB / 406 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.3374, allocations: 65.91 kB / 406.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/0.3378, allocations: 196 kB / 406.2 MB, free: 3.062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/0.3383, allocations: 192.1 kB / 406.4 MB, free: 2.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3383, allocations: 1.25 kB / 406.4 MB, free: 2.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000789/0.339, allocations: 275.6 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.3391, allocations: 6.469 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.3391, allocations: 2.688 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004203/0.3395, allocations: 50.58 kB / 406.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.3399, allocations: 53.48 kB / 406.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.3416, allocations: 1.44 MB / 408.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004031/0.342, allocations: 41.47 kB / 408.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.342, allocations: 9.094 kB / 408.3 MB, free: 1.332 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.0002095/0.3422, allocations: 153.8 kB / 408.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.419e-05/0.3423, allocations: 27.59 kB / 408.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.833e-05/0.3424, allocations: 24.39 kB / 408.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3424, allocations: 2.75 kB / 408.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3424, allocations: 0 / 408.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.3424, allocations: 5.531 kB / 408.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004279/0.3428, allocations: 217.7 kB / 408.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3428, allocations: 0 / 408.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.3431, allocations: 34.23 kB / 408.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002951/0.3434, allocations: 55.84 kB / 408.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.3434, allocations: 6.688 kB / 408.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00163/0.3451, allocations: 1.289 MB / 410.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.3451, allocations: 8.094 kB / 410.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.3463, allocations: 325.7 kB / 410.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.3464, allocations: 39.2 kB / 410.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.3465, allocations: 1.953 kB / 410.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.3468, allocations: 19.11 kB / 410.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.347, allocations: 37.55 kB / 410.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.653e-05/0.347, allocations: 9 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002672/0.3473, allocations: 141.6 kB / 410.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3473, allocations: 1.375 kB / 410.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007685/0.348, allocations: 81.91 kB / 410.8 MB, free: 15.36 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.0002244/0.3483, allocations: 104.4 kB / 410.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.3493, allocations: 276 kB / 411.1 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3493, allocations: 0 / 411.1 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.3498, allocations: 197.7 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004899/0.3503, allocations: 42.98 kB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.3531, allocations: 0.6597 MB / 412 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.3534, allocations: 149.2 kB / 412.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.3536, allocations: 26.52 kB / 412.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.065e-05/0.3537, allocations: 18.72 kB / 412.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3537, allocations: 0 / 412.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Templates: time 0.01432/0.368, allocations: 3.189 MB / 415.4 MB, free: 13.05 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/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.802166106179357]