Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001086/0.001086, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009135/0.0009135, allocations: 164.2 kB / 24.91 MB, free: 8.754 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9057/0.9057, allocations: 177 MB / 205.2 MB, free: 5.066 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.183e-05/1.32e-05, allocations: 2.312 kB / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002542/0.002556, allocations: 2.876 MB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.003566, allocations: 0.7785 MB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.003667, allocations: 4 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.003796, allocations: 51.44 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.00394, allocations: 95.14 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.004199, allocations: 99.73 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.004481, allocations: 394 kB / 277.7 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.004614, allocations: 86.3 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.004781, allocations: 215.5 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.004919, allocations: 111.7 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.728e-05/0.004957, allocations: 28 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.871e-05/0.004985, allocations: 32 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.571e-05/0.005031, allocations: 71.73 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.705e-05/0.005108, allocations: 127.7 kB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.005312, allocations: 243.1 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.482e-06/0.005313, allocations: 0 / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.21e-07/0.005313, allocations: 3.938 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.005317, allocations: 3.938 kB / 278.6 MB, free: 11.85 MB / 266.7 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.0005363/0.005853, allocations: 0.5091 MB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.892e-05/0.005882, allocations: 15.98 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.005938, allocations: 56.89 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.006118, allocations: 169.4 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.856e-05/0.006187, allocations: 128 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.006218, allocations: 36.3 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.006439, allocations: 290.5 kB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.006448, allocations: 192 / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.006465, allocations: 16.12 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.006473, allocations: 8 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.507e-05/0.006568, allocations: 84.47 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007503/0.007319, allocations: 0.8217 MB / 280.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.007456, allocations: 110.4 kB / 280.8 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.158e-05/0.007498, allocations: 40.84 kB / 280.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.007512, allocations: 4 kB / 280.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001299/0.007642, allocations: 177.3 kB / 281 MB, free: 9.215 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 9.52e-07/0.007643, allocations: 0 / 281 MB, free: 9.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003647/0.008008, allocations: 191.4 kB / 281.2 MB, free: 9.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.008048, allocations: 110.8 kB / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.008149, allocations: 203.7 kB / 281.5 MB, free: 8.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.008165, allocations: 29.7 kB / 281.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.715e-05/0.008232, allocations: 172.5 kB / 281.7 MB, free: 8.469 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.889e-05/0.008271, allocations: 75.36 kB / 281.8 MB, free: 8.395 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/0.008325, allocations: 57.67 kB / 281.8 MB, free: 8.332 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.554e-05/0.0084, allocations: 338.8 kB / 282.2 MB, free: 7.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.155e-05/0.008432, allocations: 27.98 kB / 282.2 MB, free: 7.965 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.203e-05/0.008514, allocations: 153.6 kB / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.008619, allocations: 132.1 kB / 282.5 MB, free: 7.617 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.008621, allocations: 0 / 282.5 MB, free: 7.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001617/0.008783, allocations: 176.6 kB / 282.7 MB, free: 7.438 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/0.008792, allocations: 8 kB / 282.7 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.008796, allocations: 0 / 282.7 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001206/0.008917, allocations: 44.81 kB / 282.7 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.009026, allocations: 56.14 kB / 282.8 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006302/0.009657, allocations: 1.32 MB / 284.1 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.792e-05/0.009755, allocations: 39.78 kB / 284.1 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.009766, allocations: 7.984 kB / 284.1 MB, free: 5.871 MB / 266.7 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 7.691e-05/0.009843, allocations: 137.8 kB / 284.3 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.009864, allocations: 23.97 kB / 284.3 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.339e-05/0.009888, allocations: 25.95 kB / 284.3 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.009889, allocations: 4 kB / 284.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-06/0.00989, allocations: 0 / 284.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.009893, allocations: 0 / 284.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.01002, allocations: 145.7 kB / 284.5 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.01003, allocations: 3.938 kB / 284.5 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.994e-05/0.01011, allocations: 35.98 kB / 284.5 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.663e-05/0.01018, allocations: 40.81 kB / 284.5 MB, free: 5.43 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.01019, allocations: 3.984 kB / 284.5 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004942/0.01069, allocations: 1.17 MB / 285.7 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01069, allocations: 0 / 285.7 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002087/0.0109, allocations: 209 kB / 285.9 MB, free: 3.949 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/0.01094, allocations: 31.78 kB / 285.9 MB, free: 3.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.01096, allocations: 4 kB / 286 MB, free: 3.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.806e-05/0.01101, allocations: 12 kB / 286 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.01106, allocations: 28.03 kB / 286 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.01107, allocations: 11.98 kB / 286 MB, free: 3.863 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.813e-05/0.01111, allocations: 59.03 kB / 286.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01111, allocations: 0 / 286.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001847/0.01129, allocations: 83.83 kB / 286.1 MB, free: 3.723 MB / 266.7 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 7.405e-05/0.01136, allocations: 84.36 kB / 286.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002312/0.0116, allocations: 230.9 kB / 286.4 MB, free: 3.391 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.0116, allocations: 4.438 kB / 286.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.01172, allocations: 179.4 kB / 286.6 MB, free: 3.195 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001173/0.01183, allocations: 39.84 kB / 286.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008085/0.01264, allocations: 0.5672 MB / 287.2 MB, free: 2.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.064e-05/0.01268, allocations: 88.5 kB / 287.3 MB, free: 2.453 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.344e-05/0.01274, allocations: 21.95 kB / 287.3 MB, free: 2.434 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.159e-05/0.01283, allocations: 91.34 kB / 287.4 MB, free: 2.344 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01283, allocations: 0 / 287.4 MB, free: 2.344 MB / 266.7 MB Notification: Performance of Templates: time 0.09405/0.1069, allocations: 3.046 MB / 290.5 MB, free: 25.56 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6635295590385795]