Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001595/0.001595, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.001802/0.001802, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.523/1.523, allocations: 230.2 MB / 254.5 MB, free: 15.09 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 63.91 kB / 373.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1211, allocations: 53.31 MB / 426.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004934/0.1261, allocations: 3.17 MB / 429.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.1277, allocations: 0.8218 MB / 430.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.1278, allocations: 4 kB / 430.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.128, allocations: 67.31 kB / 430.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.1282, allocations: 111 kB / 430.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000419/0.1287, allocations: 119.8 kB / 431 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005186/0.1292, allocations: 418.2 kB / 431.4 MB, free: 248 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002401/0.1294, allocations: 99.75 kB / 431.5 MB, free: 140 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2391/0.3685, allocations: 160.9 kB / 431.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004565/0.369, allocations: 173.1 kB / 431.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.3691, allocations: 35.16 kB / 431.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.3692, allocations: 42.55 kB / 431.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.639e-05/0.3693, allocations: 77.72 kB / 432 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002569/0.3696, allocations: 192.5 kB / 432.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.3702, allocations: 428.5 kB / 432.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3702, allocations: 2.625 kB / 432.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3703, allocations: 0.9375 kB / 432.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.3703, allocations: 0 / 432.6 MB, free: 7.492 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001161/0.3714, allocations: 0.6606 MB / 433.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.3715, allocations: 9.812 kB / 433.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.757e-05/0.3716, allocations: 73.91 kB / 433.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000228/0.3718, allocations: 51.48 kB / 433.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.3723, allocations: 283.8 kB / 433.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-05/0.3723, allocations: 82.72 kB / 433.7 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.329e-05/0.3724, allocations: 33.3 kB / 433.7 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005186/0.3729, allocations: 345.7 kB / 434.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.3729, allocations: 2.594 kB / 434.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.373, allocations: 11.88 kB / 434.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.373, allocations: 7.438 kB / 434.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003856/0.3734, allocations: 219.8 kB / 434.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.3751, allocations: 1.355 MB / 435.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003622/0.3754, allocations: 166.7 kB / 435.8 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.3756, allocations: 87.56 kB / 435.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.3756, allocations: 3.938 kB / 435.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003173/0.3759, allocations: 157.7 kB / 436.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.3759, allocations: 1.438 kB / 436.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001194/0.3771, allocations: 404.7 kB / 436.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.3772, allocations: 110.9 kB / 436.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.3775, allocations: 259.8 kB / 436.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.3775, allocations: 31.92 kB / 436.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.3777, allocations: 215.5 kB / 437.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.667e-05/0.3777, allocations: 83.98 kB / 437.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3778, allocations: 60.28 kB / 437.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.446e-05/0.3779, allocations: 337.9 kB / 437.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.378, allocations: 74.53 kB / 437.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.3783, allocations: 183.9 kB / 437.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.3786, allocations: 237.4 kB / 438 MB, free: 4.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3786, allocations: 0.7812 kB / 438 MB, free: 4.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006408/0.3792, allocations: 348 kB / 438.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.3792, allocations: 7.094 kB / 438.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3792, allocations: 3.062 kB / 438.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002708/0.3795, allocations: 55.14 kB / 438.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.3798, allocations: 64.41 kB / 438.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.3809, allocations: 1.569 MB / 440.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.3812, allocations: 49.5 kB / 440.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.3812, allocations: 11.25 kB / 440.1 MB, free: 2.949 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.0001404/0.3813, allocations: 153.8 kB / 440.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.3814, allocations: 26.36 kB / 440.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.3814, allocations: 36.52 kB / 440.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3814, allocations: 6.156 kB / 440.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.351e-06/0.3814, allocations: 2.812 kB / 440.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3814, allocations: 2.328 kB / 440.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003626/0.3818, allocations: 336.4 kB / 440.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3818, allocations: 1.156 kB / 440.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.382, allocations: 40.66 kB / 440.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.3822, allocations: 54.19 kB / 440.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.3822, allocations: 6.281 kB / 440.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008717/0.3831, allocations: 1.418 MB / 442.2 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3831, allocations: 1.219 kB / 442.2 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006664/0.3837, allocations: 357.6 kB / 442.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3838, allocations: 113.3 kB / 442.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.3839, allocations: 3.312 kB / 442.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.384, allocations: 23.03 kB / 442.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.207e-05/0.3841, allocations: 30.2 kB / 442.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.3841, allocations: 9.953 kB / 442.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001677/0.3843, allocations: 182.9 kB / 442.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3843, allocations: 4 kB / 442.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004049/0.3847, allocations: 93.84 kB / 443 MB, free: 0.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: 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.0008248/0.3855, allocations: 0.8949 MB / 443.9 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006116/0.3862, allocations: 305.5 kB / 444.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3862, allocations: 1.438 kB / 444.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003198/0.3865, allocations: 193 kB / 444.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.3868, allocations: 38.45 kB / 444.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004923/0.3917, allocations: 2.916 MB / 447.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005272/0.3922, allocations: 0.7737 MB / 448.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000155/0.3924, allocations: 29.94 kB / 448.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.3925, allocations: 94.2 kB / 448.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3925, allocations: 0 / 448.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03659/0.4291, allocations: 6.122 MB / 454.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.26, allocations: 5.312 kB / 454.4 MB, free: 12.24 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 15.601894895080477]