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.001735/0.001735, allocations: 71.75 kB / 21.24 MB, free: 400 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.002119/0.002119, allocations: 165.1 kB / 24.5 MB, free: 3.453 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.445/1.445, allocations: 177.2 MB / 204.9 MB, free: 9.059 MB / 190.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.001535/0.001535, allocations: 47.23 kB / 325.6 MB, free: 284 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09404, allocations: 53.35 MB / 378.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00407/0.09811, allocations: 2.687 MB / 381.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.09944, allocations: 0.7322 MB / 382.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.09957, allocations: 7.938 kB / 382.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.09972, allocations: 51.5 kB / 382.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001735/0.0999, allocations: 91.19 kB / 382.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.1002, allocations: 99.81 kB / 382.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.1006, allocations: 374.3 kB / 382.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.1008, allocations: 83.67 kB / 383 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.101, allocations: 139.5 kB / 383.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.1012, allocations: 143.3 kB / 383.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.372e-05/0.1012, allocations: 32 kB / 383.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.832e-05/0.1013, allocations: 32 kB / 383.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.1014, allocations: 67.77 kB / 383.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1015, allocations: 139.4 kB / 383.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004407/0.102, allocations: 366.5 kB / 383.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.102, allocations: 0 / 383.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.102, allocations: 0 / 383.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.102, allocations: 0 / 383.9 MB, free: 10.65 MB / 350.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.001032/0.103, allocations: 0.5379 MB / 384.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1031, allocations: 12.03 kB / 384.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.373e-05/0.1031, allocations: 36.7 kB / 384.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.1035, allocations: 206.6 kB / 384.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.1037, allocations: 128 kB / 384.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.195e-05/0.1037, allocations: 28.38 kB / 384.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006173/0.1043, allocations: 361.4 kB / 385.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1043, allocations: 0 / 385.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.1044, allocations: 12 kB / 385.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1044, allocations: 8 kB / 385.2 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004124/0.1048, allocations: 190.5 kB / 385.4 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.1064, allocations: 0.9581 MB / 386.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.1067, allocations: 146.6 kB / 386.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.1069, allocations: 72.84 kB / 386.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.834e-05/0.1069, allocations: 7.938 kB / 386.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.1072, allocations: 205.2 kB / 386.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/0.1072, allocations: 0 / 386.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001081/0.1083, allocations: 310.5 kB / 387.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.1084, allocations: 110.8 kB / 387.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.1086, allocations: 203.8 kB / 387.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.1086, allocations: 37.7 kB / 387.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1087, allocations: 180.4 kB / 387.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.35e-05/0.1088, allocations: 79.36 kB / 387.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.138e-05/0.1089, allocations: 57.66 kB / 387.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.109, allocations: 334.8 kB / 388.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.1092, allocations: 63.98 kB / 388.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.1094, allocations: 196.6 kB / 388.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003002/0.1097, allocations: 201.1 kB / 388.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1097, allocations: 0 / 388.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004556/0.1102, allocations: 272.5 kB / 388.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1102, allocations: 4 kB / 388.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1102, allocations: 4 kB / 388.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002718/0.1105, allocations: 60.97 kB / 388.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.1107, allocations: 51.92 kB / 388.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.1121, allocations: 1.442 MB / 390.4 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/0.1124, allocations: 31.83 kB / 390.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.1124, allocations: 12 kB / 390.4 MB, free: 3.699 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.0001701/0.1126, allocations: 142.4 kB / 390.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.1126, allocations: 23.84 kB / 390.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.724e-05/0.1126, allocations: 25.95 kB / 390.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1126, allocations: 4.094 kB / 390.6 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1127, allocations: 4 kB / 390.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1127, allocations: 0 / 390.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002732/0.1129, allocations: 225.1 kB / 390.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1129, allocations: 0 / 390.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.1131, allocations: 39.92 kB / 390.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001852/0.1133, allocations: 52.75 kB / 390.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.1133, allocations: 8 kB / 390.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.1146, allocations: 1.295 MB / 392.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1146, allocations: 3.984 kB / 392.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006502/0.1152, allocations: 333 kB / 392.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.848e-05/0.1153, allocations: 31.86 kB / 392.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.1153, allocations: 8 kB / 392.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.1155, allocations: 15.98 kB / 392.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.781e-05/0.1156, allocations: 35.83 kB / 392.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.1156, allocations: 7.984 kB / 392.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.1157, allocations: 149.4 kB / 392.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1157, allocations: 0 / 392.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003696/0.1161, allocations: 83.83 kB / 392.9 MB, free: 1.074 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.000123/0.1162, allocations: 106.2 kB / 393 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005691/0.1168, allocations: 282.5 kB / 393.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1168, allocations: 0 / 393.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.1171, allocations: 194.5 kB / 393.4 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.1174, allocations: 32.2 kB / 393.5 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.119, allocations: 0.6664 MB / 394.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/0.1191, allocations: 150.9 kB / 394.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.564e-05/0.1192, allocations: 21.95 kB / 394.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.345e-05/0.1193, allocations: 20.5 kB / 394.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1193, allocations: 0 / 394.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of Templates: time 0.007185/0.1265, allocations: 2.882 MB / 397.2 MB, free: 12.7 MB / 366.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/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.425993628916331]