Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 250.8 MB, free: 13.32 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 51.92 kB / 368.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3051, allocations: 52.14 MB / 420.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004441/0.3095, allocations: 2.9 MB / 423.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.3109, allocations: 0.74 MB / 424.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.3111, allocations: 4 kB / 424.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.3113, allocations: 51.5 kB / 424.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.3115, allocations: 95.12 kB / 424.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.3118, allocations: 103.8 kB / 424.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004397/0.3123, allocations: 370.4 kB / 425.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.3125, allocations: 83.22 kB / 425.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.3127, allocations: 147.5 kB / 425.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000239/0.3129, allocations: 147.4 kB / 425.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.193e-05/0.313, allocations: 31.94 kB / 425.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.496e-05/0.313, allocations: 32 kB / 425.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.263e-05/0.3131, allocations: 67.77 kB / 425.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002154/0.3133, allocations: 171.2 kB / 425.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004567/0.3138, allocations: 368 kB / 426.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3138, allocations: 4 kB / 426.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3138, allocations: 0 / 426.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.3138, allocations: 0 / 426.2 MB, free: 9.93 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.001096/0.3149, allocations: 0.6131 MB / 426.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3149, allocations: 8.031 kB / 426.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.524e-05/0.315, allocations: 36.75 kB / 426.8 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.3155, allocations: 273 kB / 427.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.589e-05/0.3155, allocations: 76.62 kB / 427.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.3156, allocations: 24.38 kB / 427.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005369/0.3161, allocations: 301.9 kB / 427.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3161, allocations: 0 / 427.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.3162, allocations: 19.94 kB / 427.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.3162, allocations: 8 kB / 427.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003704/0.3166, allocations: 190.2 kB / 427.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.3184, allocations: 1.127 MB / 428.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.3187, allocations: 146.6 kB / 429 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.3189, allocations: 76.81 kB / 429 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.3189, allocations: 3.984 kB / 429 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002826/0.3192, allocations: 170.1 kB / 429.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.3192, allocations: 0 / 429.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001056/0.3202, allocations: 373.2 kB / 429.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.3203, allocations: 110.8 kB / 429.7 MB, free: 6.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.3206, allocations: 229 kB / 429.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.3206, allocations: 29.7 kB / 429.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.3207, allocations: 184.5 kB / 430.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.3208, allocations: 75.34 kB / 430.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.3209, allocations: 53.7 kB / 430.2 MB, free: 5.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3211, allocations: 346.7 kB / 430.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.3212, allocations: 63.97 kB / 430.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.3214, allocations: 148.5 kB / 430.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.3217, allocations: 189.6 kB / 431 MB, free: 4.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3217, allocations: 0 / 431 MB, free: 4.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004821/0.3222, allocations: 276.7 kB / 431.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3222, allocations: 8.031 kB / 431.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3222, allocations: 0 / 431.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002815/0.3225, allocations: 56.81 kB / 431.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.3227, allocations: 55.84 kB / 431.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.3243, allocations: 1.568 MB / 432.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.3246, allocations: 39.77 kB / 433 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.3246, allocations: 12 kB / 433 MB, free: 2.594 MB / 334.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.0001861/0.3248, allocations: 145.7 kB / 433.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.3248, allocations: 27.84 kB / 433.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.386e-05/0.3249, allocations: 30.25 kB / 433.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.3249, allocations: 4 kB / 433.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3249, allocations: 0 / 433.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.3249, allocations: 3.984 kB / 433.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/0.3253, allocations: 317.4 kB / 433.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3253, allocations: 0 / 433.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.3255, allocations: 31.98 kB / 433.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002081/0.3257, allocations: 56.75 kB / 433.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.3257, allocations: 8 kB / 433.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.3271, allocations: 1.418 MB / 435 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3271, allocations: 3.938 kB / 435 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006859/0.3278, allocations: 331.8 kB / 435.3 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.3279, allocations: 112.9 kB / 435.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/0.328, allocations: 8 kB / 435.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.3281, allocations: 15.98 kB / 435.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.3282, allocations: 27.95 kB / 435.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.3282, allocations: 4 kB / 435.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001703/0.3284, allocations: 164.5 kB / 435.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3284, allocations: 4.062 kB / 435.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004026/0.3288, allocations: 83.83 kB / 435.7 MB, free: 15.58 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.0001403/0.3289, allocations: 107.2 kB / 435.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006409/0.3296, allocations: 278.4 kB / 436.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3296, allocations: 0 / 436.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003054/0.3299, allocations: 195 kB / 436.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.3302, allocations: 36.36 kB / 436.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.3318, allocations: 0.6715 MB / 437 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.3323, allocations: 0.7597 MB / 437.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.3324, allocations: 22.3 kB / 437.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.322e-05/0.3324, allocations: 19.44 kB / 437.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3324, allocations: 0 / 437.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of Templates: time 0.008283/0.3407, allocations: 3.201 MB / 441 MB, free: 10.25 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.681909061037004]