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.001791/0.001791, allocations: 118.2 kB / 18.5 MB, free: 4.602 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.002351/0.002351, allocations: 211.3 kB / 21.46 MB, free: 1.648 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.545/1.545, allocations: 230.2 MB / 254.5 MB, free: 15.24 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.001811/0.001811, allocations: 63.89 kB / 373.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1155, allocations: 53.31 MB / 426.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004658/0.1202, allocations: 2.906 MB / 429.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.1218, allocations: 0.7711 MB / 430.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.1219, allocations: 4 kB / 430.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.1221, allocations: 59.48 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.1223, allocations: 95.12 kB / 430.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.1227, allocations: 91.83 kB / 430.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004578/0.1232, allocations: 378.4 kB / 431 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.1234, allocations: 83.28 kB / 431 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.1235, allocations: 139.5 kB / 431.2 MB, free: 476 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.1238, allocations: 159.3 kB / 431.3 MB, free: 316 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.453e-05/0.1239, allocations: 32 kB / 431.4 MB, free: 284 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.129e-05/0.1239, allocations: 28 kB / 431.4 MB, free: 256 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.589e-05/0.124, allocations: 71.75 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.1242, allocations: 167.2 kB / 431.6 MB, free: 16 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.248/0.3722, allocations: 358.2 kB / 432 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3722, allocations: 0 / 432 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3722, allocations: 1.25 kB / 432 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.3722, allocations: 3.938 kB / 432 MB, free: 8.027 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.00101/0.3732, allocations: 0.6102 MB / 432.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.3733, allocations: 11.56 kB / 432.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.187e-05/0.3734, allocations: 62.94 kB / 432.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.863e-05/0.3734, allocations: 41.48 kB / 432.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.3738, allocations: 266.4 kB / 433 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.473e-05/0.3739, allocations: 80.66 kB / 433 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.044e-05/0.374, allocations: 31.31 kB / 433.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005154/0.3745, allocations: 302.4 kB / 433.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3745, allocations: 0 / 433.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.3745, allocations: 10.5 kB / 433.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3745, allocations: 7.906 kB / 433.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.3749, allocations: 191.9 kB / 433.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3764, allocations: 1.125 MB / 434.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.3767, allocations: 155.5 kB / 434.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.3768, allocations: 70.48 kB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.3769, allocations: 4.312 kB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.3771, allocations: 158.5 kB / 435.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.3771, allocations: 0 / 435.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00101/0.3781, allocations: 386.6 kB / 435.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/0.3782, allocations: 105 kB / 435.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.3784, allocations: 225.1 kB / 435.8 MB, free: 6.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.3784, allocations: 34.2 kB / 435.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.322e-05/0.3785, allocations: 185.4 kB / 436 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.828e-05/0.3786, allocations: 73.69 kB / 436.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.831e-05/0.3786, allocations: 51.73 kB / 436.1 MB, free: 5.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.017e-05/0.3787, allocations: 339 kB / 436.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.3788, allocations: 65.64 kB / 436.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.379, allocations: 146.1 kB / 436.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.3792, allocations: 192 kB / 436.8 MB, free: 5.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3792, allocations: 1.781 kB / 436.8 MB, free: 5.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004379/0.3797, allocations: 274.7 kB / 437.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3797, allocations: 6.438 kB / 437.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3797, allocations: 1.891 kB / 437.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.38, allocations: 58.27 kB / 437.2 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.3802, allocations: 53.03 kB / 437.2 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.3812, allocations: 1.562 MB / 438.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.3815, allocations: 41.66 kB / 438.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.3815, allocations: 9.672 kB / 438.8 MB, free: 3.789 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.0001268/0.3816, allocations: 155 kB / 439 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.3817, allocations: 23.14 kB / 439 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.63e-05/0.3817, allocations: 25.59 kB / 439 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3817, allocations: 2.188 kB / 439 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3817, allocations: 1.062 kB / 439 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3817, allocations: 2.641 kB / 439 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003133/0.382, allocations: 329.8 kB / 439.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.382, allocations: 4.5 kB / 439.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.3822, allocations: 38.36 kB / 439.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001708/0.3824, allocations: 52.38 kB / 439.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.3824, allocations: 3.656 kB / 439.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000869/0.3833, allocations: 1.425 MB / 440.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3833, allocations: 0 / 440.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005738/0.3838, allocations: 324 kB / 441.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.677e-05/0.3839, allocations: 114.2 kB / 441.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.384, allocations: 7.406 kB / 441.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.3841, allocations: 17.34 kB / 441.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.24e-05/0.3842, allocations: 33 kB / 441.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3842, allocations: 5.469 kB / 441.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001401/0.3844, allocations: 161.3 kB / 441.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3844, allocations: 4.5 kB / 441.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003927/0.3848, allocations: 87.25 kB / 441.6 MB, free: 1.793 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.0009199/0.3857, allocations: 0.8631 MB / 442.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005576/0.3862, allocations: 276.4 kB / 442.8 MB, free: 1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3863, allocations: 1.406 kB / 442.8 MB, free: 1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.3865, allocations: 196 kB / 443 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.3868, allocations: 34.89 kB / 443 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.3906, allocations: 2.61 MB / 445.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.3912, allocations: 0.7643 MB / 446.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.3913, allocations: 21.72 kB / 446.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.3915, allocations: 84 kB / 446.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3915, allocations: 0 / 446.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.4297, allocations: 5.688 MB / 452.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.25, allocations: 9.453 kB / 452.2 MB, free: 13.57 MB / 366.1 MB " [Timeout remaining time 648] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.060951886698604]