Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001369/0.001369, allocations: 119.6 kB / 18.45 MB, free: 4.605 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.001517/0.001517, allocations: 215.2 kB / 21.42 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 207.6 MB / 231.8 MB, free: 3.957 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 47.94 kB / 342.3 MB, free: 9.977 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09779/0.09955, allocations: 49.12 MB / 391.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004389/0.1039, allocations: 2.846 MB / 394.3 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.1054, allocations: 0.7796 MB / 395 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.1055, allocations: 7.938 kB / 395.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.1057, allocations: 47.5 kB / 395.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.1059, allocations: 99.12 kB / 395.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.1062, allocations: 103.7 kB / 395.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004171/0.1067, allocations: 370.3 kB / 395.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.1069, allocations: 95.25 kB / 395.8 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.107, allocations: 135.6 kB / 395.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.1072, allocations: 155.3 kB / 396 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.896e-05/0.1073, allocations: 32 kB / 396.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.114e-05/0.1073, allocations: 32 kB / 396.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.81e-05/0.1074, allocations: 67.75 kB / 396.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.1076, allocations: 163.3 kB / 396.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004262/0.108, allocations: 370.5 kB / 396.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.108, allocations: 0 / 396.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.108, allocations: 3.938 kB / 396.7 MB, free: 3.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.108, allocations: 0 / 396.7 MB, free: 3.387 MB / 318.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.001123/0.1091, allocations: 0.617 MB / 397.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1092, allocations: 12.03 kB / 397.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.389e-05/0.1093, allocations: 66.72 kB / 397.4 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.034e-05/0.1094, allocations: 36.75 kB / 397.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004249/0.1098, allocations: 260.5 kB / 397.7 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.923e-05/0.1099, allocations: 84.55 kB / 397.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.1099, allocations: 24.38 kB / 397.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005498/0.1105, allocations: 301.7 kB / 398.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.1105, allocations: 0 / 398.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.1105, allocations: 19.98 kB / 398.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.1105, allocations: 8 kB / 398.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003609/0.1109, allocations: 190.1 kB / 398.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.1127, allocations: 1.127 MB / 399.4 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.113, allocations: 146.5 kB / 399.6 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.1132, allocations: 72.83 kB / 399.6 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.1132, allocations: 0 / 399.6 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002782/0.1135, allocations: 161.8 kB / 399.8 MB, free: 52 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.012e-06/0.1135, allocations: 0 / 399.8 MB, free: 52 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00115/0.1146, allocations: 379.6 kB / 400.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/0.1147, allocations: 114.8 kB / 400.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.115, allocations: 229 kB / 400.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.115, allocations: 29.7 kB / 400.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.1152, allocations: 180.5 kB / 400.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.366e-05/0.1152, allocations: 67.42 kB / 400.8 MB, free: 15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.1153, allocations: 61.52 kB / 400.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1155, allocations: 342.8 kB / 401.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.1156, allocations: 63.97 kB / 401.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.1158, allocations: 152.6 kB / 401.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.1161, allocations: 189.2 kB / 401.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1162, allocations: 0 / 401.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005035/0.1167, allocations: 280 kB / 401.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1167, allocations: 4 kB / 401.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1167, allocations: 4 kB / 401.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/0.117, allocations: 52.81 kB / 401.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.1172, allocations: 47.98 kB / 401.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.119, allocations: 1.58 MB / 403.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.1192, allocations: 35.77 kB / 403.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.1193, allocations: 12 kB / 403.6 MB, free: 11.98 MB / 334.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.000189/0.1194, allocations: 149.7 kB / 403.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.301e-05/0.1195, allocations: 31.86 kB / 403.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.874e-05/0.1195, allocations: 30.17 kB / 403.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1195, allocations: 4 kB / 403.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1195, allocations: 0 / 403.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1196, allocations: 0 / 403.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003651/0.1199, allocations: 321.3 kB / 404.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1199, allocations: 0 / 404.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.1201, allocations: 35.97 kB / 404.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.1203, allocations: 48.83 kB / 404.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.1203, allocations: 7.984 kB / 404.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.1216, allocations: 1.422 MB / 405.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1216, allocations: 0 / 405.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006941/0.1223, allocations: 334.3 kB / 405.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.1225, allocations: 120.8 kB / 406 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.544e-05/0.1225, allocations: 8 kB / 406.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.1227, allocations: 15.98 kB / 406.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-05/0.1228, allocations: 27.95 kB / 406.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1228, allocations: 11.98 kB / 406.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001579/0.1229, allocations: 160.5 kB / 406.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1229, allocations: 0 / 406.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.1233, allocations: 83.84 kB / 406.3 MB, free: 8.953 MB / 334.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.001064/0.1244, allocations: 0.8669 MB / 407.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.125, allocations: 278.4 kB / 407.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.125, allocations: 0 / 407.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003121/0.1253, allocations: 190.6 kB / 407.7 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.1257, allocations: 48.73 kB / 407.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.1296, allocations: 2.59 MB / 410.3 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.1301, allocations: 0.7635 MB / 411.1 MB, free: 4.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.1302, allocations: 30.27 kB / 411.1 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.1303, allocations: 83.41 kB / 411.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1303, allocations: 3.938 kB / 411.2 MB, free: 3.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.1692, allocations: 5.672 MB / 416.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.48, allocations: 7.938 kB / 416.9 MB, free: 14.16 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.398001221998129]