Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.797/1.797, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003944/0.0003946, allocations: 12 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1042, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005776/0.11, allocations: 2.52 MB / 274.4 MB, free: 9.648 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002391/0.1124, allocations: 0.7605 MB / 275.2 MB, free: 8.887 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000328/0.1128, allocations: 4 kB / 275.2 MB, free: 8.883 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.113, allocations: 43.67 kB / 275.3 MB, free: 8.84 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005084/0.1135, allocations: 127.5 kB / 275.4 MB, free: 8.715 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005383/0.1141, allocations: 79.91 kB / 275.5 MB, free: 8.637 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006837/0.1148, allocations: 283.4 kB / 275.7 MB, free: 8.359 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003523/0.1152, allocations: 103 kB / 275.8 MB, free: 8.262 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003658/0.1156, allocations: 139.5 kB / 276 MB, free: 8.125 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003683/0.116, allocations: 151.4 kB / 276.1 MB, free: 7.977 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.036e-05/0.1161, allocations: 20 kB / 276.1 MB, free: 7.957 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.1162, allocations: 20 kB / 276.2 MB, free: 7.938 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.1163, allocations: 55.77 kB / 276.2 MB, free: 7.883 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.1165, allocations: 89.52 kB / 276.3 MB, free: 7.789 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006149/0.1171, allocations: 303.4 kB / 276.6 MB, free: 7.492 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.17e-06/0.1172, allocations: 0 / 276.6 MB, free: 7.492 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.433e-06/0.1172, allocations: 4 kB / 276.6 MB, free: 7.488 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.242e-06/0.1172, allocations: 0 / 276.6 MB, free: 7.488 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001828/0.119, allocations: 0.6211 MB / 277.2 MB, free: 6.82 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.1191, allocations: 8.031 kB / 277.2 MB, free: 6.812 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.1193, allocations: 39.62 kB / 277.3 MB, free: 6.773 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006726/0.12, allocations: 271.1 kB / 277.5 MB, free: 6.469 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.1202, allocations: 80.02 kB / 277.6 MB, free: 6.379 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.1203, allocations: 32 kB / 277.6 MB, free: 6.348 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.1217, allocations: 354.4 kB / 278 MB, free: 5.98 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.1218, allocations: 0 / 278 MB, free: 5.98 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.037e-05/0.1219, allocations: 12 kB / 278 MB, free: 5.969 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.1219, allocations: 8 kB / 278 MB, free: 5.961 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/0.1231, allocations: 242.1 kB / 278.2 MB, free: 5.727 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004434/0.1275, allocations: 1.414 MB / 279.7 MB, free: 4.211 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.1286, allocations: 194.6 kB / 279.8 MB, free: 4.012 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.1287, allocations: 11.94 kB / 279.9 MB, free: 4 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007158/0.1294, allocations: 161.8 kB / 280 MB, free: 3.82 MB / 234.7 MB Notification: Performance of pre-optimization done (n=19): time 4.539e-06/0.1295, allocations: 4 kB / 280 MB, free: 3.816 MB / 234.7 MB Notification: Performance of matching and sorting (n=19): time 0.002543/0.132, allocations: 441.9 kB / 280.5 MB, free: 3.359 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.1322, allocations: 118.7 kB / 280.6 MB, free: 3.219 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000671/0.1329, allocations: 270.9 kB / 280.8 MB, free: 2.945 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.885e-05/0.133, allocations: 33.7 kB / 280.9 MB, free: 2.906 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003042/0.1333, allocations: 262.3 kB / 281.1 MB, free: 2.648 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.1334, allocations: 63.11 kB / 281.2 MB, free: 2.586 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.1335, allocations: 8 kB / 281.2 MB, free: 2.578 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1337, allocations: 318.8 kB / 281.5 MB, free: 2.258 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004903/0.1342, allocations: 87.95 kB / 281.6 MB, free: 2.172 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006393/0.1349, allocations: 195.5 kB / 281.8 MB, free: 1.938 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005346/0.1355, allocations: 99.89 kB / 281.9 MB, free: 1.84 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.863e-06/0.1355, allocations: 0 / 281.9 MB, free: 1.84 MB / 234.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001507/0.137, allocations: 322 kB / 282.2 MB, free: 1.516 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.1371, allocations: 4 kB / 282.2 MB, free: 1.512 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.1371, allocations: 4 kB / 282.2 MB, free: 1.508 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005217/0.1376, allocations: 61.16 kB / 282.3 MB, free: 1.445 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006724/0.1383, allocations: 83.89 kB / 282.3 MB, free: 1.363 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.1411, allocations: 1.424 MB / 283.8 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006369/0.1417, allocations: 43.73 kB / 283.8 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.822e-05/0.1418, allocations: 16 kB / 283.8 MB, free: 15.75 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003691/0.1422, allocations: 157.7 kB / 284 MB, free: 15.58 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.67e-05/0.1423, allocations: 27.67 kB / 284 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.1424, allocations: 34.2 kB / 284 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.043e-06/0.1425, allocations: 0 / 284 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.952e-06/0.1425, allocations: 4 kB / 284 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.1425, allocations: 3.984 kB / 284 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000755/0.1433, allocations: 333.4 kB / 284.4 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.385e-06/0.1433, allocations: 0 / 284.4 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.1439, allocations: 63.95 kB / 284.4 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004093/0.1443, allocations: 52.77 kB / 284.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.171e-05/0.1444, allocations: 11.94 kB / 284.5 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002503/0.1469, allocations: 1.335 MB / 285.8 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.884e-06/0.1469, allocations: 3.938 kB / 285.8 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.1489, allocations: 384.8 kB / 286.2 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002947/0.1492, allocations: 124.7 kB / 286.3 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.287e-05/0.1494, allocations: 0 / 286.3 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004314/0.1498, allocations: 28.05 kB / 286.4 MB, free: 12.97 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.15, allocations: 31.94 kB / 286.4 MB, free: 12.94 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/0.1501, allocations: 4 kB / 286.4 MB, free: 12.94 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004353/0.1505, allocations: 190 kB / 286.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.128e-06/0.1505, allocations: 0 / 286.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001039/0.1516, allocations: 87.75 kB / 286.7 MB, free: 12.67 MB / 250.7 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: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002498/0.1519, allocations: 119.2 kB / 286.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.1533, allocations: 334.9 kB / 287.1 MB, free: 12.2 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.023e-06/0.1534, allocations: 0 / 287.1 MB, free: 12.2 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007397/0.1541, allocations: 210.6 kB / 287.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.1546, allocations: 33.25 kB / 287.3 MB, free: 11.95 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/0.1581, allocations: 0.8554 MB / 288.2 MB, free: 11.06 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006669/0.1588, allocations: 0.7836 MB / 289 MB, free: 10.25 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.159, allocations: 23.44 kB / 289 MB, free: 10.23 MB / 250.7 MB Notification: Performance of SimCode: time 2.121e-06/0.159, allocations: 0 / 289 MB, free: 10.23 MB / 250.7 MB Notification: Performance of Templates: time 0.01694/0.176, allocations: 4.448 MB / 293.5 MB, free: 5.777 MB / 250.7 MB "Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.off in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.off from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.on in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.on from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.quenched in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.quenched from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.tSwitch in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.tSwitch from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! " Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:constantVoltage1.V,constantVoltage1.i,constantVoltage1.n.i,constantVoltage1.n.v,constantVoltage1.p.i,constantVoltage1.p.v,constantVoltage1.v,constantVoltage2.V,constantVoltage2.i,constantVoltage2.n.i,constantVoltage2.n.v,constantVoltage2.p.i,constantVoltage2.p.v,constantVoltage2.v,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,inductor1.L,der(inductor1.i),inductor1.i,inductor1.n.i,inductor1.n.v,inductor1.p.i,inductor1.p.v,inductor1.v,inductor2.L,der(inductor2.i),inductor2.i,inductor2.n.i,inductor2.n.v,inductor2.p.i,inductor2.p.v,inductor2.v,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.v,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control.i,switch1.control.v,switch1.level,switch1.n.i,switch1.n.v,switch1.p.i,switch1.p.v,switch2.Goff,switch2.LossPower,switch2.Ron,switch2.T,switch2.T_heatPort,switch2.V0,switch2.Vmax,switch2.control.i,switch2.control.v,switch2.dVdt,switch2.i,switch2.level,switch2.n.i,switch2.n.v,switch2.p.i,switch2.p.v,switch2.v,time