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.001841/0.001841, allocations: 132.4 kB / 17.79 MB, free: 5.242 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.002141/0.002141, allocations: 210.5 kB / 20.75 MB, free: 2.293 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.404/1.404, allocations: 230.4 MB / 254 MB, free: 15.03 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.001956/0.001956, allocations: 67.89 kB / 373 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1018, allocations: 53.38 MB / 426.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005523/0.1073, allocations: 3.166 MB / 429.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.1093, allocations: 0.8217 MB / 430.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000406/0.1097, allocations: 15.88 kB / 430.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.11, allocations: 59.42 kB / 430.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003848/0.1104, allocations: 107 kB / 430.5 MB, free: 428 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004997/0.1109, allocations: 119.7 kB / 430.7 MB, free: 308 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2041/0.315, allocations: 414 kB / 431.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002887/0.3153, allocations: 100.8 kB / 431.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003703/0.3157, allocations: 168 kB / 431.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.3159, allocations: 176.5 kB / 431.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.785e-05/0.3159, allocations: 34.94 kB / 431.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.316, allocations: 41.53 kB / 431.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.995e-05/0.3161, allocations: 79.62 kB / 431.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.3163, allocations: 191 kB / 431.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.3167, allocations: 430.6 kB / 432.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3167, allocations: 0.5625 kB / 432.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3167, allocations: 2.688 kB / 432.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3167, allocations: 0.5625 kB / 432.3 MB, free: 7.48 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.0008833/0.3176, allocations: 0.6576 MB / 432.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.3176, allocations: 9.875 kB / 432.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.3177, allocations: 68.94 kB / 433 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.3179, allocations: 57.16 kB / 433.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.3182, allocations: 289.3 kB / 433.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.776e-05/0.3182, allocations: 75.97 kB / 433.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/0.3183, allocations: 33.97 kB / 433.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.3187, allocations: 338.4 kB / 433.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.3187, allocations: 0 / 433.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.3188, allocations: 18.41 kB / 433.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3188, allocations: 8.781 kB / 433.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000394/0.3192, allocations: 219.1 kB / 434 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.3207, allocations: 1.358 MB / 435.4 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.321, allocations: 160.1 kB / 435.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.3212, allocations: 90.73 kB / 435.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.3212, allocations: 2.906 kB / 435.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.3215, allocations: 155.4 kB / 435.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.122e-06/0.3215, allocations: 0 / 435.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001065/0.3225, allocations: 406.3 kB / 436.2 MB, free: 5.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.3226, allocations: 109.7 kB / 436.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.3228, allocations: 270.3 kB / 436.5 MB, free: 5.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.3228, allocations: 29.8 kB / 436.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3229, allocations: 211.5 kB / 436.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/0.323, allocations: 76.88 kB / 436.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.994e-05/0.3231, allocations: 60.83 kB / 436.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.3231, allocations: 336.2 kB / 437.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3233, allocations: 83.27 kB / 437.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.3235, allocations: 175.2 kB / 437.5 MB, free: 4.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.3238, allocations: 242.5 kB / 437.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3238, allocations: 0 / 437.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006235/0.3244, allocations: 347.6 kB / 438.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3244, allocations: 6.375 kB / 438.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3244, allocations: 2.719 kB / 438.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.3247, allocations: 55.62 kB / 438.1 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.3249, allocations: 64.53 kB / 438.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009828/0.3259, allocations: 1.567 MB / 439.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.3262, allocations: 46.47 kB / 439.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.3262, allocations: 15.27 kB / 439.8 MB, free: 2.891 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.000122/0.3263, allocations: 155.5 kB / 440 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.856e-05/0.3264, allocations: 26.03 kB / 440 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.146e-05/0.3264, allocations: 35.34 kB / 440 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3264, allocations: 3.594 kB / 440 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3264, allocations: 4.938 kB / 440 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.3264, allocations: 1.219 kB / 440 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003163/0.3267, allocations: 340.4 kB / 440.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3267, allocations: 0 / 440.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.3269, allocations: 38.88 kB / 440.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001782/0.3271, allocations: 58.78 kB / 440.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.3271, allocations: 2.484 kB / 440.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008177/0.3279, allocations: 1.426 MB / 441.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3279, allocations: 4.156 kB / 441.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.3286, allocations: 349.6 kB / 442.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.06e-05/0.3286, allocations: 113.6 kB / 442.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.3287, allocations: 7.172 kB / 442.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.3288, allocations: 19.48 kB / 442.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.921e-05/0.3289, allocations: 37.72 kB / 442.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.3289, allocations: 12.59 kB / 442.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.3291, allocations: 186.4 kB / 442.6 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3291, allocations: 0 / 442.6 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003726/0.3295, allocations: 93.06 kB / 442.7 MB, free: 0.5547 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.0008884/0.3304, allocations: 0.8907 MB / 443.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005982/0.331, allocations: 306.1 kB / 443.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.331, allocations: 1.219 kB / 443.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.3313, allocations: 192.5 kB / 444.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.3315, allocations: 38.28 kB / 444.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004451/0.336, allocations: 2.907 MB / 447 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.3364, allocations: 0.7793 MB / 447.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.3365, allocations: 25.52 kB / 447.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.3366, allocations: 94.64 kB / 447.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3366, allocations: 4 kB / 447.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.3716, allocations: 6.114 MB / 454 MB, free: 11.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.39, allocations: 12.02 kB / 454.1 MB, free: 11.95 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 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.csv","/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_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.458924695034511]