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.001291/0.001291, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001436/0.001436, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 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 1.41/1.41, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 59.91 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2528, allocations: 53.4 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004129/0.2569, allocations: 2.925 MB / 434.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.2584, allocations: 0.7711 MB / 434.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2585, allocations: 4 kB / 434.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001827/0.2587, allocations: 51.5 kB / 434.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.2589, allocations: 91.19 kB / 435 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.2592, allocations: 111.7 kB / 435.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004612/0.2597, allocations: 370.4 kB / 435.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.2599, allocations: 87.61 kB / 435.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.2601, allocations: 143.5 kB / 435.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.2603, allocations: 151.4 kB / 435.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.265e-05/0.2603, allocations: 28 kB / 435.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.893e-05/0.2604, allocations: 32 kB / 435.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.126e-05/0.2605, allocations: 71.75 kB / 436 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.2606, allocations: 171.2 kB / 436.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004446/0.2611, allocations: 362.9 kB / 436.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2611, allocations: 0 / 436.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.2611, allocations: 4 kB / 436.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.2611, allocations: 0 / 436.5 MB, free: 1.332 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.001021/0.2621, allocations: 0.5339 MB / 437.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.2622, allocations: 8.031 kB / 437.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.644e-05/0.2622, allocations: 74.7 kB / 437.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.739e-05/0.2623, allocations: 36.7 kB / 437.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.2627, allocations: 210.7 kB / 437.4 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.2628, allocations: 132 kB / 437.5 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.2629, allocations: 28.38 kB / 437.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004922/0.2634, allocations: 301.9 kB / 437.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2634, allocations: 0 / 437.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.2e-05/0.2634, allocations: 15.98 kB / 437.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.2634, allocations: 4 kB / 437.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003381/0.2638, allocations: 190.5 kB / 438 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.2654, allocations: 1.081 MB / 439.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.2657, allocations: 154.2 kB / 439.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.2659, allocations: 71.59 kB / 439.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2659, allocations: 4 kB / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.2661, allocations: 161.3 kB / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.2661, allocations: 0 / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00098/0.2671, allocations: 310.5 kB / 439.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.769e-05/0.2672, allocations: 106.8 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.2674, allocations: 228.9 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.2675, allocations: 33.7 kB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.2676, allocations: 184.5 kB / 440.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.862e-05/0.2677, allocations: 67.44 kB / 440.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.556e-05/0.2678, allocations: 57.69 kB / 440.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2679, allocations: 330.8 kB / 440.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.268, allocations: 71.91 kB / 440.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.2682, allocations: 145.5 kB / 441 MB, free: 12.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.2685, allocations: 196.1 kB / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2685, allocations: 0 / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000436/0.269, allocations: 280.6 kB / 441.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.269, allocations: 8 kB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.269, allocations: 0 / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.2692, allocations: 52.75 kB / 441.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.2695, allocations: 55.92 kB / 441.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001413/0.2709, allocations: 1.472 MB / 443.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.2711, allocations: 35.86 kB / 443.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.2711, allocations: 19.92 kB / 443.1 MB, free: 10.29 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.0001582/0.2713, allocations: 153.4 kB / 443.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.2713, allocations: 27.92 kB / 443.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.478e-05/0.2714, allocations: 22.28 kB / 443.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2714, allocations: 0 / 443.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2714, allocations: 4 kB / 443.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.2714, allocations: 3.984 kB / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003254/0.2717, allocations: 300.4 kB / 443.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2717, allocations: 0 / 443.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.2719, allocations: 27.98 kB / 443.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001927/0.272, allocations: 60.75 kB / 443.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2721, allocations: 4 kB / 443.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.2732, allocations: 1.315 MB / 445 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2732, allocations: 0 / 445 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006123/0.2738, allocations: 332.7 kB / 445.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.696e-05/0.2739, allocations: 43.73 kB / 445.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.274, allocations: 4 kB / 445.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.2741, allocations: 19.98 kB / 445.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.114e-05/0.2742, allocations: 27.94 kB / 445.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.2742, allocations: 7.984 kB / 445.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001418/0.2744, allocations: 164.5 kB / 445.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2744, allocations: 0 / 445.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.2747, allocations: 79.89 kB / 445.7 MB, free: 7.543 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.000926/0.2756, allocations: 0.8668 MB / 446.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005393/0.2762, allocations: 278.4 kB / 446.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2762, allocations: 0 / 446.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.2765, allocations: 194 kB / 447 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.2768, allocations: 47.3 kB / 447.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003569/0.2803, allocations: 2.598 MB / 449.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.2807, allocations: 0.7558 MB / 450.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.156e-05/0.2808, allocations: 30.27 kB / 450.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.2809, allocations: 87.41 kB / 450.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2809, allocations: 0 / 450.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03802/0.3189, allocations: 5.852 MB / 456.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.69, allocations: 5.25 kB / 456.4 MB, free: 12.77 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 15.201816740911454]