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.001352/0.001352, allocations: 119.6 kB / 20.44 MB, free: 1.445 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.001544/0.001544, allocations: 223.7 kB / 23.75 MB, free: 4.664 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.54/1.54, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.001481/0.001481, allocations: 47.92 kB / 378.3 MB, free: 2.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3011, allocations: 53.36 MB / 431.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004539/0.3057, allocations: 2.92 MB / 434.6 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.3072, allocations: 0.775 MB / 435.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.3073, allocations: 4 kB / 435.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.3075, allocations: 47.5 kB / 435.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.3077, allocations: 99.12 kB / 435.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000374/0.3081, allocations: 99.81 kB / 435.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004396/0.3085, allocations: 366.4 kB / 435.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/0.3087, allocations: 95.33 kB / 436 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.3089, allocations: 147.5 kB / 436.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.3092, allocations: 151.3 kB / 436.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.943e-05/0.3093, allocations: 28 kB / 436.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.592e-05/0.3093, allocations: 32 kB / 436.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.927e-05/0.3094, allocations: 83.62 kB / 436.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.3096, allocations: 163.2 kB / 436.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004592/0.31, allocations: 365.1 kB / 437 MB, free: 1.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.31, allocations: 0 / 437 MB, free: 1.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.31, allocations: 0 / 437 MB, free: 1.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.31, allocations: 0 / 437 MB, free: 1.57 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.001089/0.3111, allocations: 0.5417 MB / 437.5 MB, free: 1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3112, allocations: 8.031 kB / 437.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.086e-05/0.3113, allocations: 40.7 kB / 437.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.3117, allocations: 206.7 kB / 437.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.3118, allocations: 124 kB / 437.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.508e-05/0.3119, allocations: 32.38 kB / 437.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000535/0.3124, allocations: 306 kB / 438.2 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3124, allocations: 0 / 438.2 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.3125, allocations: 12 kB / 438.2 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.3125, allocations: 8 kB / 438.2 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003983/0.3129, allocations: 190.5 kB / 438.4 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.3148, allocations: 1.085 MB / 439.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.3151, allocations: 146.5 kB / 439.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.3153, allocations: 72.83 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.3153, allocations: 4 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003294/0.3156, allocations: 157.8 kB / 439.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.3156, allocations: 0 / 439.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0011/0.3167, allocations: 304.2 kB / 440.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.962e-05/0.3168, allocations: 114.8 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.3171, allocations: 221 kB / 440.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.3171, allocations: 33.7 kB / 440.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.3173, allocations: 184.4 kB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.038e-05/0.3173, allocations: 71.47 kB / 440.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.801e-05/0.3174, allocations: 57.66 kB / 440.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3176, allocations: 338.7 kB / 441.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.3177, allocations: 67.97 kB / 441.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.3179, allocations: 148.6 kB / 441.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/0.3182, allocations: 188.2 kB / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3182, allocations: 0 / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004612/0.3187, allocations: 272.7 kB / 441.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.3187, allocations: 8 kB / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3187, allocations: 3.938 kB / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002804/0.319, allocations: 52.81 kB / 441.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.3192, allocations: 55.91 kB / 442 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/0.3208, allocations: 1.469 MB / 443.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.321, allocations: 39.7 kB / 443.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.3211, allocations: 11.98 kB / 443.5 MB, free: 10.62 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.0001862/0.3213, allocations: 155.3 kB / 443.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.916e-05/0.3213, allocations: 27.92 kB / 443.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.214e-05/0.3213, allocations: 26.27 kB / 443.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3214, allocations: 4 kB / 443.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3214, allocations: 4 kB / 443.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3214, allocations: 0 / 443.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003638/0.3217, allocations: 296.4 kB / 444 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3217, allocations: 0 / 444 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.3219, allocations: 35.97 kB / 444 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000199/0.3221, allocations: 60.69 kB / 444.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.3221, allocations: 4 kB / 444.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.3234, allocations: 1.318 MB / 445.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3234, allocations: 4.031 kB / 445.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006575/0.3241, allocations: 324.2 kB / 445.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.06e-05/0.3242, allocations: 39.8 kB / 445.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.3242, allocations: 4 kB / 445.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.3244, allocations: 19.98 kB / 445.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.92e-05/0.3245, allocations: 27.94 kB / 445.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.3245, allocations: 8 kB / 445.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001564/0.3246, allocations: 164.5 kB / 446 MB, free: 7.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3246, allocations: 0 / 446 MB, free: 7.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003744/0.325, allocations: 83.83 kB / 446.1 MB, free: 7.855 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.0001352/0.3252, allocations: 107.2 kB / 446.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005797/0.3257, allocations: 286.4 kB / 446.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3257, allocations: 448 / 446.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002904/0.326, allocations: 190.6 kB / 446.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.3263, allocations: 36.42 kB / 446.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.328, allocations: 0.6633 MB / 447.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.3284, allocations: 0.7558 MB / 448.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.048e-05/0.3285, allocations: 26.28 kB / 448.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.3285, allocations: 23.42 kB / 448.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3285, allocations: 0 / 448.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of Templates: time 0.008082/0.3366, allocations: 3.261 MB / 451.4 MB, free: 2.461 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/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: 4.768794430885464]