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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001346, allocations: 102.9 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 191.9 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 48.14 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1129, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005162/0.1181, allocations: 2.832 MB / 330.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.1198, allocations: 0.7681 MB / 331 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002787/0.1201, allocations: 4 kB / 331 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.1203, allocations: 51.5 kB / 331 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.1206, allocations: 95.12 kB / 331.1 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.121, allocations: 95.83 kB / 331.2 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004685/0.1215, allocations: 374.4 kB / 331.6 MB, free: 144 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.1218, allocations: 119.2 kB / 331.7 MB, free: 28 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.122, allocations: 131.7 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.1223, allocations: 159.2 kB / 332 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.695e-05/0.1223, allocations: 28 kB / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.343e-05/0.1224, allocations: 32 kB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.055e-05/0.1225, allocations: 71.75 kB / 332.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.1226, allocations: 163.2 kB / 332.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003414/0.123, allocations: 362.8 kB / 332.6 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.123, allocations: 0 / 332.6 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.123, allocations: 0 / 332.6 MB, free: 15.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.123, allocations: 4 kB / 332.6 MB, free: 15.09 MB / 286.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.001024/0.1241, allocations: 0.5979 MB / 333.2 MB, free: 14.44 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1241, allocations: 8.031 kB / 333.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.1242, allocations: 70.72 kB / 333.3 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.049e-05/0.1243, allocations: 36.56 kB / 333.3 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.1247, allocations: 272.3 kB / 333.6 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.53e-05/0.1248, allocations: 76.62 kB / 333.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/0.1248, allocations: 28.38 kB / 333.7 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.1253, allocations: 301.7 kB / 334 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1253, allocations: 3.938 kB / 334 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.1253, allocations: 8 kB / 334 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1254, allocations: 12 kB / 334 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/0.1257, allocations: 190.2 kB / 334.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.1274, allocations: 1.135 MB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.1277, allocations: 154.6 kB / 335.5 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.1279, allocations: 84.83 kB / 335.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1279, allocations: 4 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.1282, allocations: 157.8 kB / 335.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.1283, allocations: 0 / 335.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001009/0.1293, allocations: 383.2 kB / 336.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.1293, allocations: 110.8 kB / 336.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.1296, allocations: 229 kB / 336.4 MB, free: 10.97 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/0.1297, allocations: 33.7 kB / 336.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.1298, allocations: 172.2 kB / 336.6 MB, free: 10.76 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.888e-05/0.1299, allocations: 79 kB / 336.7 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-05/0.13, allocations: 57.64 kB / 336.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1301, allocations: 334.8 kB / 337.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.1302, allocations: 67.97 kB / 337.2 MB, free: 10.21 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.1304, allocations: 144.6 kB / 337.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.1307, allocations: 192.2 kB / 337.5 MB, free: 9.832 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1307, allocations: 0 / 337.5 MB, free: 9.832 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000419/0.1311, allocations: 271.7 kB / 337.8 MB, free: 9.559 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.1311, allocations: 8 kB / 337.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1312, allocations: 0 / 337.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002644/0.1314, allocations: 53.03 kB / 337.8 MB, free: 9.496 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.1316, allocations: 59.91 kB / 337.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.133, allocations: 1.572 MB / 339.5 MB, free: 7.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.1332, allocations: 43.77 kB / 339.5 MB, free: 7.688 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1332, allocations: 8 kB / 339.5 MB, free: 7.68 MB / 286.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.0001679/0.1334, allocations: 149.7 kB / 339.7 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.1335, allocations: 15.81 kB / 339.7 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.753e-05/0.1335, allocations: 30.17 kB / 339.7 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.1335, allocations: 0 / 339.7 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1335, allocations: 0 / 339.7 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1335, allocations: 3.938 kB / 339.7 MB, free: 7.477 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000306/0.1339, allocations: 329.3 kB / 340 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1339, allocations: 4 kB / 340 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.134, allocations: 31.92 kB / 340.1 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001814/0.1342, allocations: 48.81 kB / 340.1 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.1343, allocations: 4 kB / 340.1 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.1355, allocations: 1.43 MB / 341.5 MB, free: 5.445 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1355, allocations: 0 / 341.5 MB, free: 5.445 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006064/0.1361, allocations: 322.2 kB / 341.9 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.1363, allocations: 120.8 kB / 342 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.1363, allocations: 7.984 kB / 342 MB, free: 4.965 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.1365, allocations: 23.98 kB / 342 MB, free: 4.941 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.14e-05/0.1366, allocations: 27.95 kB / 342 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.1366, allocations: 4 kB / 342 MB, free: 4.91 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.1368, allocations: 160.5 kB / 342.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1368, allocations: 0 / 342.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003492/0.1371, allocations: 83.83 kB / 342.3 MB, free: 4.672 MB / 286.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.000979/0.1381, allocations: 0.8667 MB / 343.1 MB, free: 3.773 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005523/0.1387, allocations: 302.6 kB / 343.4 MB, free: 3.465 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1387, allocations: 0 / 343.4 MB, free: 3.465 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.139, allocations: 190.5 kB / 343.6 MB, free: 3.266 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.1393, allocations: 32.42 kB / 343.7 MB, free: 3.234 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003614/0.143, allocations: 2.613 MB / 346.3 MB, free: 492 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.1433, allocations: 0.7596 MB / 347 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.1434, allocations: 22.28 kB / 347 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1435, allocations: 83.41 kB / 347.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1436, allocations: 8 kB / 347.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.1751, allocations: 5.514 MB / 352.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.38, allocations: 11.92 kB / 352.7 MB, free: 9.996 MB / 302.1 MB (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) 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) Reference file matches