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.001409/0.001409, allocations: 113.8 kB / 21.19 MB, free: 0.7031 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.001785/0.001785, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.706/1.706, allocations: 207.6 MB / 235.3 MB, free: 10 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [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.001846/0.001846, allocations: 51.94 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3603, allocations: 49.16 MB / 396.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003828/0.3641, allocations: 2.846 MB / 399.2 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.3655, allocations: 0.7856 MB / 400 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.3656, allocations: 6.156 kB / 400 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.3658, allocations: 51.61 kB / 400 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.366, allocations: 86.12 kB / 400.1 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.3663, allocations: 107.8 kB / 400.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.3667, allocations: 381.1 kB / 400.6 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.3669, allocations: 91.44 kB / 400.7 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.367, allocations: 143.5 kB / 400.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.3672, allocations: 154.4 kB / 401 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.893e-05/0.3673, allocations: 29.69 kB / 401 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.369e-05/0.3673, allocations: 31.53 kB / 401 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.046e-05/0.3674, allocations: 65.56 kB / 401.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.3675, allocations: 165.8 kB / 401.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004438/0.368, allocations: 367.8 kB / 401.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.368, allocations: 1.188 kB / 401.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.368, allocations: 4 kB / 401.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.368, allocations: 0 / 401.6 MB, free: 5.562 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.001066/0.369, allocations: 0.5364 MB / 402.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3691, allocations: 14.06 kB / 402.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.16e-05/0.3692, allocations: 71.56 kB / 402.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.42e-05/0.3692, allocations: 35 kB / 402.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.3696, allocations: 204.3 kB / 402.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.3697, allocations: 126.7 kB / 402.6 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.778e-05/0.3697, allocations: 31.53 kB / 402.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000493/0.3702, allocations: 300.9 kB / 402.9 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3702, allocations: 5.312 kB / 402.9 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.3703, allocations: 11.44 kB / 403 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3703, allocations: 6.844 kB / 403 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.3706, allocations: 189.3 kB / 403.1 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.372, allocations: 1.084 MB / 404.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.3723, allocations: 157.3 kB / 404.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.3725, allocations: 79.16 kB / 404.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.3725, allocations: 2.219 kB / 404.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.3727, allocations: 155.6 kB / 404.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.3727, allocations: 0 / 404.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009549/0.3737, allocations: 305.5 kB / 404.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.3737, allocations: 106 kB / 405 MB, free: 3.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002051/0.3739, allocations: 234 kB / 405.2 MB, free: 3.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.374, allocations: 36.84 kB / 405.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.374, allocations: 175.2 kB / 405.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.93e-05/0.3741, allocations: 75.19 kB / 405.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.054e-05/0.3742, allocations: 64.92 kB / 405.6 MB, free: 2.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.513e-05/0.3743, allocations: 334.8 kB / 405.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3744, allocations: 66.27 kB / 406 MB, free: 2.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.3745, allocations: 150.3 kB / 406.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.3748, allocations: 189.5 kB / 406.3 MB, free: 2.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3748, allocations: 1.312 kB / 406.3 MB, free: 2.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004101/0.3752, allocations: 268.5 kB / 406.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3752, allocations: 6.547 kB / 406.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.3752, allocations: 1.625 kB / 406.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002698/0.3755, allocations: 60.06 kB / 406.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.3757, allocations: 53.97 kB / 406.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.3768, allocations: 1.463 MB / 408.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.377, allocations: 38.69 kB / 408.2 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.377, allocations: 9 kB / 408.2 MB, free: 0.5938 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.0001193/0.3771, allocations: 153.3 kB / 408.4 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.378e-05/0.3772, allocations: 23.38 kB / 408.4 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.806e-05/0.3772, allocations: 26.73 kB / 408.4 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3772, allocations: 1.375 kB / 408.4 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.3772, allocations: 5.375 kB / 408.4 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3772, allocations: 5.203 kB / 408.4 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003023/0.3775, allocations: 297.8 kB / 408.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3775, allocations: 0.5156 kB / 408.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.3777, allocations: 34.06 kB / 408.7 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001815/0.3779, allocations: 52.47 kB / 408.8 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.3779, allocations: 6.688 kB / 408.8 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.3792, allocations: 1.317 MB / 410.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3792, allocations: 0 / 410.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006971/0.3799, allocations: 329.3 kB / 410.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.38, allocations: 47.41 kB / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.38, allocations: 5.906 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.3802, allocations: 18.94 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3803, allocations: 32.62 kB / 410.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3803, allocations: 6 kB / 410.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.3805, allocations: 162.1 kB / 410.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3805, allocations: 0 / 410.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004129/0.3809, allocations: 82.94 kB / 410.8 MB, free: 14.51 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.001032/0.3819, allocations: 0.8584 MB / 411.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005932/0.3825, allocations: 283.5 kB / 411.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3825, allocations: 1.375 kB / 411.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.3828, allocations: 188.5 kB / 412.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.3831, allocations: 33.47 kB / 412.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004108/0.3872, allocations: 2.607 MB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.3876, allocations: 0.7582 MB / 415.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.3878, allocations: 25.53 kB / 415.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.3879, allocations: 81.81 kB / 415.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3879, allocations: 5.031 kB / 415.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0513/0.4392, allocations: 5.868 MB / 421.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.2, allocations: 9.234 kB / 421.5 MB, free: 7.934 MB / 334.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/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: 16.279577025001345]