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.001332/0.001332, allocations: 119.4 kB / 17.79 MB, free: 5.285 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.001344/0.001344, allocations: 215.5 kB / 20.75 MB, free: 2.328 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.438/1.438, allocations: 230.4 MB / 254 MB, free: 15.04 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.00298/0.00298, allocations: 63.89 kB / 373 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1197, allocations: 53.37 MB / 426.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004196/0.1239, allocations: 2.905 MB / 429.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.1253, allocations: 0.7712 MB / 430 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1254, allocations: 7.938 kB / 430.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.1256, allocations: 51.5 kB / 430.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.1258, allocations: 87.2 kB / 430.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.1261, allocations: 107.7 kB / 430.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000394/0.1265, allocations: 366.4 kB / 430.7 MB, free: 288 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000204/0.1267, allocations: 87.27 kB / 430.7 MB, free: 192 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.1269, allocations: 147.5 kB / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2184/0.3453, allocations: 147.6 kB / 431 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.3454, allocations: 29.5 kB / 431.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.653e-05/0.3455, allocations: 30.25 kB / 431.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.669e-05/0.3456, allocations: 69.77 kB / 431.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.3458, allocations: 166.4 kB / 431.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004642/0.3463, allocations: 367.4 kB / 431.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3463, allocations: 0.5 kB / 431.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3463, allocations: 1.781 kB / 431.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.3463, allocations: 0 / 431.7 MB, free: 7.742 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.0009386/0.3472, allocations: 0.611 MB / 432.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.3473, allocations: 10.31 kB / 432.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.964e-05/0.3473, allocations: 69.34 kB / 432.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.189e-05/0.3474, allocations: 40.89 kB / 432.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.3477, allocations: 265 kB / 432.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.388e-05/0.3478, allocations: 76.33 kB / 432.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.913e-05/0.3478, allocations: 32.64 kB / 432.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00045/0.3483, allocations: 300.9 kB / 433.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3483, allocations: 1.797 kB / 433.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.3483, allocations: 18.97 kB / 433.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3483, allocations: 5.875 kB / 433.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002957/0.3486, allocations: 192 kB / 433.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.35, allocations: 1.118 MB / 434.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002769/0.3502, allocations: 155.4 kB / 434.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3504, allocations: 72.33 kB / 434.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.3504, allocations: 1.312 kB / 434.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.3506, allocations: 159.7 kB / 434.8 MB, free: 6.148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.3506, allocations: 3.844 kB / 434.8 MB, free: 6.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009766/0.3516, allocations: 383.6 kB / 435.2 MB, free: 6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.3516, allocations: 106.1 kB / 435.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.3518, allocations: 223 kB / 435.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.3519, allocations: 35.55 kB / 435.5 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.873e-05/0.3519, allocations: 185.4 kB / 435.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.352, allocations: 68 kB / 435.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-05/0.3521, allocations: 57.62 kB / 435.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.76e-05/0.3521, allocations: 341.5 kB / 436.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.3523, allocations: 63.48 kB / 436.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.3524, allocations: 146.6 kB / 436.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.3527, allocations: 195.8 kB / 436.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.3527, allocations: 0.8125 kB / 436.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004348/0.3531, allocations: 273.2 kB / 436.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.3531, allocations: 5.594 kB / 436.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3532, allocations: 2.25 kB / 436.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002723/0.3534, allocations: 60.22 kB / 436.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.3536, allocations: 51.16 kB / 436.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.3547, allocations: 1.568 MB / 438.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.3549, allocations: 38.36 kB / 438.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.3549, allocations: 12.8 kB / 438.5 MB, free: 3.492 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.0001123/0.355, allocations: 154.2 kB / 438.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.309e-05/0.3551, allocations: 30.84 kB / 438.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.676e-05/0.3551, allocations: 25.83 kB / 438.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3551, allocations: 1.766 kB / 438.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3551, allocations: 1.5 kB / 438.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3551, allocations: 0.7969 kB / 438.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/0.3554, allocations: 326.5 kB / 439.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3554, allocations: 1.078 kB / 439.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001607/0.3556, allocations: 34.42 kB / 439.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001789/0.3557, allocations: 59.81 kB / 439.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.3558, allocations: 5.609 kB / 439.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008361/0.3566, allocations: 1.42 MB / 440.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3566, allocations: 0.875 kB / 440.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005827/0.3572, allocations: 329.2 kB / 440.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.101e-05/0.3573, allocations: 111.7 kB / 441 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.3573, allocations: 11.73 kB / 441 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.3575, allocations: 17.08 kB / 441.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.745e-05/0.3576, allocations: 32.8 kB / 441.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.3576, allocations: 5.5 kB / 441.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001303/0.3577, allocations: 162.1 kB / 441.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3577, allocations: 0 / 441.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000358/0.3581, allocations: 86.56 kB / 441.3 MB, free: 1.363 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.0007933/0.3588, allocations: 0.8662 MB / 442.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005178/0.3594, allocations: 277.2 kB / 442.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3594, allocations: 1.219 kB / 442.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.3596, allocations: 195.6 kB / 442.7 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.3599, allocations: 36.36 kB / 442.7 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003681/0.3636, allocations: 2.601 MB / 445.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.364, allocations: 0.7626 MB / 446.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.318e-05/0.3641, allocations: 22.27 kB / 446.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.3642, allocations: 83.19 kB / 446.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3642, allocations: 0.6875 kB / 446.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03471/0.3989, allocations: 5.681 MB / 451.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.89, allocations: 5.438 kB / 451.8 MB, free: 13.09 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 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.csv","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 14.532891002018005]