Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.978/1.978, allocations: 209.2 MB / 224.8 MB, free: 0.7734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004349, allocations: 12 kB / 282.6 MB, free: 9.625 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 48.71 MB / 331.3 MB, free: 8.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.003547/0.1088, allocations: 2.046 MB / 333.3 MB, free: 6.758 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1101, allocations: 0.6084 MB / 333.9 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1103, allocations: 4 kB / 333.9 MB, free: 6.145 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.927e-05/0.1104, allocations: 31.75 kB / 334 MB, free: 6.113 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002593/0.1107, allocations: 91.67 kB / 334.1 MB, free: 6.023 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.1109, allocations: 43.95 kB / 334.1 MB, free: 5.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00037/0.1113, allocations: 203.6 kB / 334.3 MB, free: 5.781 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.1115, allocations: 68.78 kB / 334.4 MB, free: 5.715 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.1117, allocations: 99.62 kB / 334.5 MB, free: 5.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.112, allocations: 103.5 kB / 334.6 MB, free: 5.516 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.24e-05/0.112, allocations: 12 kB / 334.6 MB, free: 5.504 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.1121, allocations: 16 kB / 334.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.821e-05/0.1122, allocations: 35.84 kB / 334.6 MB, free: 5.453 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.074e-05/0.1123, allocations: 69.58 kB / 334.7 MB, free: 5.379 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.1126, allocations: 207.7 kB / 334.9 MB, free: 5.176 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1126, allocations: 0 / 334.9 MB, free: 5.176 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1126, allocations: 0 / 334.9 MB, free: 5.176 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1126, allocations: 0 / 334.9 MB, free: 5.176 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0009906/0.1136, allocations: 0.4942 MB / 335.4 MB, free: 4.637 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1137, allocations: 8.031 kB / 335.4 MB, free: 4.629 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.368e-05/0.1138, allocations: 58.55 kB / 335.5 MB, free: 4.562 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.1139, allocations: 31.62 kB / 335.5 MB, free: 4.531 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003601/0.1142, allocations: 242.6 kB / 335.7 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.1143, allocations: 16.44 kB / 335.7 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.1143, allocations: 20 kB / 335.8 MB, free: 4.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005427/0.1149, allocations: 195.3 kB / 335.9 MB, free: 4.023 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1149, allocations: 7.875 kB / 336 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/0.115, allocations: 8 kB / 336 MB, free: 4.008 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.115, allocations: 4 kB / 336 MB, free: 4.004 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004749/0.1155, allocations: 145.7 kB / 336.1 MB, free: 3.863 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.1174, allocations: 0.8142 MB / 336.9 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.1177, allocations: 102.5 kB / 337 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.1177, allocations: 0 / 337 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1178, allocations: 30.56 kB / 337.1 MB, free: 2.824 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.1178, allocations: 0 / 337.1 MB, free: 2.824 MB / 282.7 MB Notification: Performance of matching and sorting (n=16): time 0.002757/0.1205, allocations: 0.7565 MB / 337.8 MB, free: 2.008 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.1206, allocations: 51.41 kB / 337.9 MB, free: 1.945 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.1209, allocations: 211 kB / 338.1 MB, free: 1.73 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.121, allocations: 33.7 kB / 338.1 MB, free: 1.691 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.1211, allocations: 230.2 kB / 338.3 MB, free: 1.465 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.198e-05/0.1212, allocations: 55.2 kB / 338.4 MB, free: 1.41 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.776e-05/0.1212, allocations: 4 kB / 338.4 MB, free: 1.406 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1214, allocations: 322.8 kB / 338.7 MB, free: 1.082 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.1216, allocations: 59.97 kB / 338.8 MB, free: 1.023 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.1219, allocations: 121 kB / 338.9 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002739/0.1222, allocations: 75.98 kB / 338.9 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1222, allocations: 0 / 338.9 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008646/0.1231, allocations: 275.1 kB / 339.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.1231, allocations: 11.98 kB / 339.2 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.1232, allocations: 0 / 339.2 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003425/0.1235, allocations: 69.69 kB / 339.3 MB, free: 456 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.1238, allocations: 39.91 kB / 339.3 MB, free: 416 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2539/0.3777, allocations: 2.815 MB / 342.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.378, allocations: 14.69 kB / 342.2 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.3781, allocations: 8.859 kB / 342.2 MB, free: 13.09 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.3783, allocations: 136.3 kB / 342.3 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.207e-05/0.3784, allocations: 20.03 kB / 342.3 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.148e-05/0.3784, allocations: 27.12 kB / 342.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.3784, allocations: 2.438 kB / 342.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3785, allocations: 2.688 kB / 342.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3785, allocations: 0.5156 kB / 342.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004332/0.3789, allocations: 291.5 kB / 342.6 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3789, allocations: 0 / 342.6 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.3791, allocations: 25.06 kB / 342.7 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003289/0.3794, allocations: 69.27 kB / 342.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.3795, allocations: 6.984 kB / 342.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00255/0.382, allocations: 2.824 MB / 345.6 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3821, allocations: 0.5156 kB / 345.6 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3831, allocations: 399.5 kB / 346 MB, free: 9.992 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.3832, allocations: 109.4 kB / 346.1 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.3833, allocations: 2.766 kB / 346.1 MB, free: 9.879 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.3836, allocations: 24.14 kB / 346.1 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.501e-05/0.3837, allocations: 19.33 kB / 346.1 MB, free: 9.871 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.3838, allocations: 5.891 kB / 346.1 MB, free: 9.871 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002315/0.384, allocations: 152.1 kB / 346.3 MB, free: 9.773 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-07/0.384, allocations: 0 / 346.3 MB, free: 9.773 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005155/0.3845, allocations: 64.94 kB / 346.3 MB, free: 9.766 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (basicTransformer.i1) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001235/0.3858, allocations: 0.9403 MB / 347.3 MB, free: 8.996 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009779/0.3868, allocations: 413 kB / 347.7 MB, free: 8.715 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3868, allocations: 0.9688 kB / 347.7 MB, free: 8.715 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006431/0.3875, allocations: 343.7 kB / 348 MB, free: 8.453 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.3879, allocations: 31.77 kB / 348 MB, free: 8.441 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003214/0.3911, allocations: 1.433 MB / 349.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.3914, allocations: 0.7548 MB / 350.2 MB, free: 6.855 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.3915, allocations: 67.86 kB / 350.3 MB, free: 6.805 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.3915, allocations: 0 / 350.3 MB, free: 6.805 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.686/3.078, allocations: 5.355 MB / 355.6 MB, free: 6.055 MB / 282.7 MB "Error: Could not read variable resistor11.n.der(v) in file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable resistor11.n.der(v) from file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable resistor12.n.der(v) in file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable resistor12.n.der(v) from file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable sineVoltage1.signalSource.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable sineVoltage1.signalSource.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.P[1,1] in file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.P[1,1] from file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.P[1,2] in file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.P[1,2] from file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.der(x[1]) in file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.der(x[1]) from file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.x[1] in file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.x[1] from file ModelicaTest_3.2.1_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! " Variables in the reference:time,basicTransformer.i1,basicTransformer.i2 Variables in the result:L,basicTransformer.L1,basicTransformer.L2,basicTransformer.M,basicTransformer.dv,basicTransformer.i1,basicTransformer.i2,basicTransformer.n1.i,basicTransformer.n1.v,basicTransformer.n2.i,basicTransformer.n2.v,basicTransformer.p1.i,basicTransformer.p1.v,basicTransformer.p2.i,basicTransformer.p2.v,basicTransformer.v1,basicTransformer.v2,der(basicTransformer.i1),der(basicTransformer.i2),der(basicTransformer.v2),der(load1.v),der(resistor11.v),der(resistor12.v),der(sineVoltage1.v),ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,load1.LossPower,load1.R,load1.R_actual,load1.T,load1.T_heatPort,load1.T_ref,load1.alpha,load1.i,load1.n.i,load1.n.v,load1.p.i,load1.p.v,load1.useHeatPort,load1.v,resistor11.LossPower,resistor11.R,resistor11.R_actual,resistor11.T,resistor11.T_heatPort,resistor11.T_ref,resistor11.alpha,resistor11.i,resistor11.n.i,resistor11.n.v,resistor11.p.i,resistor11.p.v,resistor11.useHeatPort,resistor11.v,resistor12.LossPower,resistor12.R,resistor12.R_actual,resistor12.T,resistor12.T_heatPort,resistor12.T_ref,resistor12.alpha,resistor12.i,resistor12.n.i,resistor12.n.v,resistor12.p.i,resistor12.p.v,resistor12.useHeatPort,resistor12.v,sineVoltage1.V,sineVoltage1.freqHz,sineVoltage1.i,sineVoltage1.n.i,sineVoltage1.n.v,sineVoltage1.offset,sineVoltage1.p.i,sineVoltage1.p.v,sineVoltage1.phase,sineVoltage1.signalSource.amplitude,sineVoltage1.signalSource.freqHz,sineVoltage1.signalSource.offset,sineVoltage1.signalSource.phase,sineVoltage1.signalSource.startTime,sineVoltage1.signalSource.y,sineVoltage1.startTime,sineVoltage1.v,time