Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001303/0.001303, allocations: 72.06 kB / 21.24 MB, free: 0.5469 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.001354/0.001354, allocations: 150.1 kB / 24.49 MB, free: 3.73 MB / 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.452/1.452, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 46.78 kB / 319.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08676/0.08828, allocations: 52.16 MB / 371.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004366/0.09265, allocations: 2.898 MB / 374.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.09395, allocations: 0.7321 MB / 375.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.09409, allocations: 4 kB / 375.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.09426, allocations: 59.42 kB / 375.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001765/0.09444, allocations: 95.06 kB / 375.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000321/0.09476, allocations: 119.7 kB / 375.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004451/0.0952, allocations: 418.2 kB / 375.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.0954, allocations: 100.3 kB / 376 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.09562, allocations: 163.4 kB / 376.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.09584, allocations: 147.2 kB / 376.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.647e-05/0.0959, allocations: 32 kB / 376.3 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.202e-05/0.09596, allocations: 36 kB / 376.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.068e-05/0.09604, allocations: 87.67 kB / 376.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.09621, allocations: 155.3 kB / 376.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004581/0.09666, allocations: 434.2 kB / 377 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.09667, allocations: 0 / 377 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09667, allocations: 0 / 377 MB, free: 1.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.09667, allocations: 0 / 377 MB, free: 1.852 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001065/0.09774, allocations: 0.5792 MB / 377.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.09778, allocations: 12.03 kB / 377.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.359e-05/0.09786, allocations: 40.7 kB / 377.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.09825, allocations: 223.5 kB / 377.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.09836, allocations: 132 kB / 378 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.332e-05/0.09841, allocations: 32.38 kB / 378 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.099, allocations: 398.2 kB / 378.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.09901, allocations: 0 / 378.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.09904, allocations: 12 kB / 378.4 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.09905, allocations: 12 kB / 378.4 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.09948, allocations: 218.5 kB / 378.7 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.1013, allocations: 1.183 MB / 379.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.1016, allocations: 157.6 kB / 380 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1018, allocations: 84.81 kB / 380.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.832e-05/0.1018, allocations: 3.984 kB / 380.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.1021, allocations: 217.5 kB / 380.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.1021, allocations: 4 kB / 380.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001044/0.1031, allocations: 325.1 kB / 380.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.1032, allocations: 110.8 kB / 380.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.1035, allocations: 249.8 kB / 381 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.1035, allocations: 33.64 kB / 381 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.1037, allocations: 212.2 kB / 381.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.1037, allocations: 75.41 kB / 381.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.15e-05/0.1038, allocations: 61.98 kB / 381.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.104, allocations: 334.8 kB / 381.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.1041, allocations: 80.55 kB / 381.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.1044, allocations: 232.9 kB / 382 MB, free: 12.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004516/0.1048, allocations: 243.5 kB / 382.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1049, allocations: 0 / 382.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000672/0.1055, allocations: 332.4 kB / 382.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.1055, allocations: 15.92 kB / 382.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1055, allocations: 0 / 382.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002447/0.1058, allocations: 61.16 kB / 382.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.106, allocations: 59.91 kB / 382.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.1074, allocations: 1.445 MB / 384.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.1076, allocations: 35.83 kB / 384.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.1076, allocations: 16 kB / 384.2 MB, free: 10.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.000153/0.1078, allocations: 156.5 kB / 384.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.849e-05/0.1078, allocations: 23.86 kB / 384.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.967e-05/0.1079, allocations: 26.27 kB / 384.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1079, allocations: 4 kB / 384.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1079, allocations: 8.031 kB / 384.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1079, allocations: 3.984 kB / 384.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.1082, allocations: 229.2 kB / 384.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1082, allocations: 0 / 384.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.1083, allocations: 39.97 kB / 384.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.1085, allocations: 52.81 kB / 384.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.1085, allocations: 7.938 kB / 384.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.1098, allocations: 1.295 MB / 386 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1098, allocations: 4.031 kB / 386 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007259/0.1105, allocations: 349.7 kB / 386.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.899e-05/0.1106, allocations: 35.81 kB / 386.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.1106, allocations: 8 kB / 386.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.1108, allocations: 19.97 kB / 386.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/0.1109, allocations: 27.95 kB / 386.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.1109, allocations: 7.984 kB / 386.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.1111, allocations: 161.2 kB / 386.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1111, allocations: 4 kB / 386.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000369/0.1114, allocations: 95.84 kB / 386.7 MB, free: 7.504 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000153/0.1116, allocations: 115 kB / 386.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006006/0.1122, allocations: 309.2 kB / 387.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1122, allocations: 0 / 387.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.1125, allocations: 191.3 kB / 387.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.1128, allocations: 32.48 kB / 387.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.1143, allocations: 0.6883 MB / 388 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000172/0.1144, allocations: 168.8 kB / 388.2 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.801e-05/0.1145, allocations: 18.3 kB / 388.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.733e-05/0.1146, allocations: 32.48 kB / 388.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1146, allocations: 0 / 388.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of Templates: time 0.007109/0.1217, allocations: 2.891 MB / 391.1 MB, free: 3.043 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.460549919982441]