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.001798/0.001798, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002336/0.002336, allocations: 207.4 kB / 23.72 MB, free: 4.391 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.529/1.529, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.001911/0.001911, allocations: 68.09 kB / 377.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2845, allocations: 53.41 MB / 431.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004552/0.289, allocations: 2.699 MB / 433.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2905, allocations: 0.7338 MB / 434.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.2906, allocations: 4 kB / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.2907, allocations: 51.5 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.2909, allocations: 95.12 kB / 434.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002968/0.2912, allocations: 111.8 kB / 434.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004279/0.2916, allocations: 366.4 kB / 435.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.2918, allocations: 75.69 kB / 435.3 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.292, allocations: 151.5 kB / 435.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.2921, allocations: 135.3 kB / 435.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.867e-05/0.2922, allocations: 28 kB / 435.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.672e-05/0.2923, allocations: 32 kB / 435.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.328e-05/0.2923, allocations: 63.77 kB / 435.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.2925, allocations: 147.4 kB / 435.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.2929, allocations: 366.5 kB / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.2929, allocations: 3.938 kB / 436.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2929, allocations: 0 / 436.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2929, allocations: 0 / 436.2 MB, free: 1.379 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.0008957/0.2938, allocations: 0.5339 MB / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.2938, allocations: 15.98 kB / 436.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.367e-05/0.2939, allocations: 70.72 kB / 436.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.205e-05/0.294, allocations: 36.7 kB / 436.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.2943, allocations: 206.7 kB / 437 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.2944, allocations: 132 kB / 437.2 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.2945, allocations: 32.38 kB / 437.2 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005392/0.295, allocations: 353.2 kB / 437.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.295, allocations: 3.984 kB / 437.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.2951, allocations: 12 kB / 437.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.2951, allocations: 8 kB / 437.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003633/0.2954, allocations: 190.5 kB / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.2971, allocations: 1.011 MB / 438.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.2974, allocations: 150.6 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.2975, allocations: 80.77 kB / 439 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.2976, allocations: 0 / 439 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.2979, allocations: 212.6 kB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.2979, allocations: 0 / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009947/0.2989, allocations: 306.5 kB / 439.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/0.2989, allocations: 110.7 kB / 439.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.2992, allocations: 232.9 kB / 439.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.2992, allocations: 33.7 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.2994, allocations: 172.5 kB / 440 MB, free: 13.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.776e-05/0.2994, allocations: 79.41 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.617e-05/0.2995, allocations: 61.66 kB / 440.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.2997, allocations: 334.8 kB / 440.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.2998, allocations: 67.97 kB / 440.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.3001, allocations: 200.9 kB / 440.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.3003, allocations: 188.1 kB / 440.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3003, allocations: 4.031 kB / 440.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000444/0.3008, allocations: 272.5 kB / 441.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3008, allocations: 8 kB / 441.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3008, allocations: 0 / 441.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002526/0.3011, allocations: 57.03 kB / 441.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.3013, allocations: 55.91 kB / 441.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.3027, allocations: 1.453 MB / 442.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.3029, allocations: 39.98 kB / 442.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.3029, allocations: 12 kB / 442.8 MB, free: 10.23 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.0001851/0.3031, allocations: 161.3 kB / 443 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.3031, allocations: 23.86 kB / 443 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.993e-05/0.3032, allocations: 26.28 kB / 443 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.3032, allocations: 0 / 443 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3032, allocations: 11.98 kB / 443.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3032, allocations: 0 / 443.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00033/0.3035, allocations: 264.5 kB / 443.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3035, allocations: 4 kB / 443.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.3037, allocations: 31.92 kB / 443.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001809/0.3039, allocations: 48.81 kB / 443.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.3039, allocations: 8 kB / 443.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.3051, allocations: 1.322 MB / 444.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3051, allocations: 0 / 444.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006379/0.3058, allocations: 317.1 kB / 445 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-05/0.3059, allocations: 47.73 kB / 445.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.3059, allocations: 4 kB / 445.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.3061, allocations: 20.17 kB / 445.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.057e-05/0.3061, allocations: 35.88 kB / 445.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.3061, allocations: 4 kB / 445.1 MB, free: 7.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001514/0.3063, allocations: 164.5 kB / 445.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3063, allocations: 0 / 445.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.3066, allocations: 87.78 kB / 445.4 MB, free: 7.492 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.0009708/0.3076, allocations: 0.862 MB / 446.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005201/0.3081, allocations: 282.4 kB / 446.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3081, allocations: 4 kB / 446.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.3084, allocations: 189.6 kB / 446.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.3087, allocations: 44.89 kB / 446.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/0.3125, allocations: 2.598 MB / 449.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001598/0.3126, allocations: 150.9 kB / 449.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.78e-05/0.3127, allocations: 22.28 kB / 449.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.3129, allocations: 87.41 kB / 449.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3129, allocations: 0 / 449.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.3513, allocations: 6.301 MB / 455.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.55, allocations: 3.938 kB / 455.9 MB, free: 12.91 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] "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,constantVoltage1.V,constantVoltage1.i,constantVoltage1.n.i,constantVoltage1.n.v,constantVoltage1.p.i,constantVoltage1.p.v,constantVoltage1.v,constantVoltage2.V,constantVoltage2.i,constantVoltage2.n.i,constantVoltage2.n.v,constantVoltage2.p.i,constantVoltage2.p.v,constantVoltage2.v,der(inductor1.i),der(inductor2.i),ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,inductor1.L,inductor1.i,inductor1.n.i,inductor1.n.v,inductor1.p.i,inductor1.p.v,inductor1.v,inductor2.L,inductor2.i,inductor2.n.i,inductor2.n.v,inductor2.p.i,inductor2.p.v,inductor2.v,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.useHeatPort,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.useHeatPort,resistor2.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control,switch1.i,switch1.n.i,switch1.n.v,switch1.p.i,switch1.p.v,switch1.useHeatPort,switch1.v,switch2.Goff,switch2.LossPower,switch2.Ron,switch2.T,switch2.T_heatPort,switch2.V0,switch2.Vmax,switch2.control,switch2.dVdt,switch2.i,switch2.n.i,switch2.n.v,switch2.off,switch2.p.i,switch2.p.v,switch2.useHeatPort,switch2.v,time [Calling sys.exit(0), Time elapsed: 15.332175717689097]