Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 59.89 kB / 365.7 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.109, allocations: 52.14 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004644/0.1136, allocations: 3.153 MB / 420.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.115, allocations: 0.7556 MB / 421.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.1152, allocations: 4 kB / 421.7 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.1154, allocations: 63.42 kB / 421.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.1156, allocations: 95.06 kB / 421.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.1159, allocations: 115.7 kB / 422 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004441/0.1164, allocations: 422.1 kB / 422.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1166, allocations: 95.77 kB / 422.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.1168, allocations: 163.5 kB / 422.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.117, allocations: 167.2 kB / 422.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.407e-05/0.1171, allocations: 36 kB / 422.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.632e-05/0.1171, allocations: 36 kB / 422.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.461e-05/0.1172, allocations: 87.61 kB / 423 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.1174, allocations: 183.1 kB / 423.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004475/0.1178, allocations: 422.2 kB / 423.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1178, allocations: 8 kB / 423.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.307e-06/0.1178, allocations: 4 kB / 423.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.1179, allocations: 0 / 423.6 MB, free: 6.879 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.001076/0.1189, allocations: 0.6545 MB / 424.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.119, allocations: 12.03 kB / 424.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.692e-05/0.119, allocations: 70.72 kB / 424.3 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/0.1191, allocations: 40.7 kB / 424.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.1195, allocations: 285.3 kB / 424.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.172e-05/0.1196, allocations: 80.62 kB / 424.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/0.1197, allocations: 32.38 kB / 424.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005621/0.1202, allocations: 342.7 kB / 425.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.1203, allocations: 3.938 kB / 425.1 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.816e-05/0.1203, allocations: 15.98 kB / 425.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1203, allocations: 8 kB / 425.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.1208, allocations: 222.5 kB / 425.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.1227, allocations: 1.356 MB / 426.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.123, allocations: 166.5 kB / 426.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.1232, allocations: 80.81 kB / 426.9 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1232, allocations: 4 kB / 426.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.1235, allocations: 161.8 kB / 427.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.1235, allocations: 0 / 427.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001085/0.1245, allocations: 405.4 kB / 427.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/0.1246, allocations: 110.8 kB / 427.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.1249, allocations: 254.7 kB / 427.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.1249, allocations: 33.69 kB / 427.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.1251, allocations: 208.3 kB / 428.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.512e-05/0.1251, allocations: 75.38 kB / 428.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.555e-05/0.1252, allocations: 66.03 kB / 428.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1254, allocations: 334.8 kB / 428.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.1255, allocations: 80.62 kB / 428.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.1258, allocations: 173.5 kB / 428.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.1261, allocations: 236.2 kB / 429 MB, free: 1.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1261, allocations: 4 kB / 429 MB, free: 1.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006605/0.1268, allocations: 344.3 kB / 429.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.1268, allocations: 10.19 kB / 429.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1268, allocations: 0 / 429.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002537/0.1271, allocations: 57.16 kB / 429.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.1273, allocations: 63.91 kB / 429.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.1288, allocations: 1.572 MB / 431 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.129, allocations: 55.78 kB / 431.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.129, allocations: 12 kB / 431.1 MB, free: 14.77 MB / 366.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.0001565/0.1292, allocations: 154.3 kB / 431.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.236e-05/0.1292, allocations: 31.8 kB / 431.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.585e-05/0.1293, allocations: 26.17 kB / 431.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1293, allocations: 7.984 kB / 431.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1293, allocations: 0 / 431.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1293, allocations: 7.984 kB / 431.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003436/0.1296, allocations: 337.4 kB / 431.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1296, allocations: 0 / 431.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.1298, allocations: 39.97 kB / 431.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001819/0.13, allocations: 56.69 kB / 431.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.13, allocations: 8 kB / 431.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.1312, allocations: 1.422 MB / 433.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1312, allocations: 0 / 433.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006894/0.1319, allocations: 349.5 kB / 433.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.132, allocations: 121 kB / 433.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.1321, allocations: 12 kB / 433.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.1322, allocations: 19.98 kB / 433.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.549e-05/0.1323, allocations: 31.83 kB / 433.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.1323, allocations: 8 kB / 433.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.1325, allocations: 182 kB / 433.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1325, allocations: 0 / 433.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000369/0.1329, allocations: 91.83 kB / 434 MB, free: 11.65 MB / 366.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.001064/0.1339, allocations: 0.897 MB / 434.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000611/0.1346, allocations: 298.5 kB / 435.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1346, allocations: 0 / 435.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003162/0.1349, allocations: 198.6 kB / 435.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.1351, allocations: 33.17 kB / 435.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.1395, allocations: 2.921 MB / 438.3 MB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.1399, allocations: 0.7713 MB / 439.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.14, allocations: 26.28 kB / 439.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.1401, allocations: 95.41 kB / 439.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1401, allocations: 0 / 439.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04448/0.1846, allocations: 6.077 MB / 445.3 MB, free: 292 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.65, allocations: 4.609 kB / 445.3 MB, free: 288 kB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.005215188954026]