Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001999/0.001999, allocations: 213.3 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 47.92 kB / 377.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2659, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004895/0.2708, allocations: 3.192 MB / 434.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.2726, allocations: 0.8295 MB / 435.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003063/0.2729, allocations: 8 kB / 435.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002478/0.2732, allocations: 55.44 kB / 435.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003379/0.2735, allocations: 111 kB / 435.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.274, allocations: 123.8 kB / 435.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000607/0.2746, allocations: 418.2 kB / 435.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.2749, allocations: 104.2 kB / 436 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.2752, allocations: 163.5 kB / 436.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.2754, allocations: 171.2 kB / 436.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.536e-05/0.2755, allocations: 36 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.2756, allocations: 51.92 kB / 436.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.2757, allocations: 79.69 kB / 436.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002051/0.2759, allocations: 195.1 kB / 436.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005132/0.2764, allocations: 426.6 kB / 437.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2764, allocations: 0 / 437.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2764, allocations: 3.938 kB / 437.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.847e-05/0.2764, allocations: 4 kB / 437.1 MB, free: 0.9102 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001155/0.2776, allocations: 0.5831 MB / 437.7 MB, free: 300 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.2776, allocations: 8.031 kB / 437.7 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.364e-05/0.2777, allocations: 70.72 kB / 437.7 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.2779, allocations: 56.64 kB / 437.8 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004649/0.2784, allocations: 223.5 kB / 438 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.2785, allocations: 136 kB / 438.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.2786, allocations: 28.38 kB / 438.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005938/0.2792, allocations: 342.7 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.2792, allocations: 0 / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.2792, allocations: 12 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.2792, allocations: 11.98 kB / 438.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004552/0.2797, allocations: 222.5 kB / 438.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.2818, allocations: 1.31 MB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.2821, allocations: 170.4 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.2823, allocations: 76.83 kB / 440.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.2823, allocations: 4 kB / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003166/0.2827, allocations: 157.8 kB / 440.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 3.637e-06/0.2827, allocations: 3.984 kB / 440.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001125/0.2838, allocations: 328.2 kB / 440.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/0.2839, allocations: 106.8 kB / 440.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003011/0.2842, allocations: 273.8 kB / 441.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.2842, allocations: 29.7 kB / 441.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.2844, allocations: 208.3 kB / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.779e-05/0.2844, allocations: 79.38 kB / 441.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.2845, allocations: 58.02 kB / 441.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2847, allocations: 338.8 kB / 441.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.2849, allocations: 76.56 kB / 441.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.2851, allocations: 185.5 kB / 442.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.2855, allocations: 243.5 kB / 442.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2855, allocations: 0 / 442.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007431/0.2862, allocations: 344.5 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.2863, allocations: 4 kB / 442.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.2863, allocations: 7.938 kB / 442.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002671/0.2865, allocations: 56.81 kB / 442.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.2868, allocations: 64.06 kB / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.2883, allocations: 1.461 MB / 444.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.2885, allocations: 47.72 kB / 444.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.2886, allocations: 12 kB / 444.3 MB, free: 9.156 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.0001834/0.2888, allocations: 158.2 kB / 444.5 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.051e-05/0.2888, allocations: 31.78 kB / 444.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.509e-05/0.2889, allocations: 30.28 kB / 444.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2889, allocations: 4 kB / 444.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2889, allocations: 3.984 kB / 444.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2889, allocations: 0 / 444.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003912/0.2893, allocations: 308.4 kB / 444.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2893, allocations: 0 / 444.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.2895, allocations: 39.97 kB / 444.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.2897, allocations: 56.75 kB / 444.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.2897, allocations: 4 kB / 445 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.2909, allocations: 1.33 MB / 446.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2909, allocations: 0 / 446.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007285/0.2917, allocations: 351.2 kB / 446.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.2918, allocations: 39.81 kB / 446.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.2918, allocations: 7.984 kB / 446.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.292, allocations: 19.98 kB / 446.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.342e-05/0.2921, allocations: 31.95 kB / 446.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.2921, allocations: 7.984 kB / 446.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.2923, allocations: 185.2 kB / 446.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2923, allocations: 0 / 446.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003876/0.2927, allocations: 87.84 kB / 447 MB, free: 6.297 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.001073/0.2937, allocations: 0.8885 MB / 447.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006169/0.2943, allocations: 306.9 kB / 448.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.2943, allocations: 192 / 448.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003123/0.2947, allocations: 201.4 kB / 448.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.2949, allocations: 44.3 kB / 448.4 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004515/0.2995, allocations: 2.906 MB / 451.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.2999, allocations: 0.7753 MB / 452.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.3, allocations: 22.3 kB / 452.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.3001, allocations: 103.4 kB / 452.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3001, allocations: 0 / 452.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03883/0.3389, allocations: 6.31 MB / 458.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.12, allocations: 10.78 kB / 458.5 MB, free: 10.67 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 16.33076908905059]