Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.251/2.251, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004536/0.0004538, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.345, allocations: 54.85 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.003472/0.3485, allocations: 2.062 MB / 371.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.35, allocations: 0.6171 MB / 371.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.3502, allocations: 7.938 kB / 371.9 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.516e-05/0.3503, allocations: 23.83 kB / 372 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000256/0.3505, allocations: 83.73 kB / 372.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002612/0.3508, allocations: 59.86 kB / 372.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.3512, allocations: 191.5 kB / 372.3 MB, free: 7.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.3514, allocations: 72.52 kB / 372.4 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.3516, allocations: 99.69 kB / 372.5 MB, free: 7.488 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.3518, allocations: 99.55 kB / 372.6 MB, free: 7.391 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.318e-05/0.3519, allocations: 12 kB / 372.6 MB, free: 7.379 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.658e-05/0.3519, allocations: 12 kB / 372.6 MB, free: 7.367 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.398e-05/0.352, allocations: 43.83 kB / 372.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.3521, allocations: 69.58 kB / 372.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.3524, allocations: 196.4 kB / 372.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3524, allocations: 0 / 372.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3524, allocations: 0 / 372.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.3524, allocations: 4 kB / 372.9 MB, free: 7.055 MB / 298.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.0009956/0.3534, allocations: 0.5066 MB / 373.4 MB, free: 6.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.3535, allocations: 12.02 kB / 373.4 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.81e-05/0.3536, allocations: 54.55 kB / 373.5 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.541e-05/0.3537, allocations: 23.72 kB / 373.5 MB, free: 6.402 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000369/0.3541, allocations: 238.6 kB / 373.7 MB, free: 6.129 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.3541, allocations: 16.44 kB / 373.7 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.353e-05/0.3542, allocations: 27.89 kB / 373.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005544/0.3548, allocations: 191.3 kB / 373.9 MB, free: 5.895 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.3548, allocations: 3.984 kB / 374 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.3549, allocations: 15.95 kB / 374 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.3549, allocations: 4 kB / 374 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/0.3554, allocations: 137.7 kB / 374.1 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.3573, allocations: 0.8181 MB / 374.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.3576, allocations: 102.5 kB / 375 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.3577, allocations: 0 / 375 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.3577, allocations: 46.62 kB / 375.1 MB, free: 4.676 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.3577, allocations: 0 / 375.1 MB, free: 4.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.002824/0.3606, allocations: 0.7455 MB / 375.8 MB, free: 3.871 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.3607, allocations: 59.34 kB / 375.9 MB, free: 3.801 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003101/0.361, allocations: 211.8 kB / 376.1 MB, free: 3.582 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.361, allocations: 33.64 kB / 376.1 MB, free: 3.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.3612, allocations: 226.2 kB / 376.3 MB, free: 3.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.016e-05/0.3613, allocations: 59.19 kB / 376.4 MB, free: 3.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/0.3613, allocations: 4 kB / 376.4 MB, free: 3.258 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.3614, allocations: 322.8 kB / 376.7 MB, free: 2.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002736/0.3617, allocations: 55.97 kB / 376.8 MB, free: 2.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/0.362, allocations: 113.1 kB / 376.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.3623, allocations: 76.5 kB / 377 MB, free: 2.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3624, allocations: 0 / 377 MB, free: 2.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009141/0.3633, allocations: 281.8 kB / 377.2 MB, free: 2.391 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.3633, allocations: 8 kB / 377.2 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3633, allocations: 0 / 377.2 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003908/0.3637, allocations: 77.59 kB / 377.3 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.364, allocations: 31.98 kB / 377.3 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003368/0.3674, allocations: 2.835 MB / 380.2 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.3678, allocations: 12.03 kB / 380.2 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.3678, allocations: 4 kB / 380.2 MB, free: 15.15 MB / 314.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.0002196/0.368, allocations: 141.8 kB / 380.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.22e-05/0.3681, allocations: 24.08 kB / 380.4 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.373e-05/0.3682, allocations: 21.88 kB / 380.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3682, allocations: 3.984 kB / 380.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.3682, allocations: 3.953 kB / 380.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3682, allocations: 4 kB / 380.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004597/0.3687, allocations: 281.5 kB / 380.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3687, allocations: 0.6562 kB / 380.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.3689, allocations: 23.98 kB / 380.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003301/0.3693, allocations: 69.67 kB / 380.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.3693, allocations: 0 / 380.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003097/0.3724, allocations: 2.824 MB / 383.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3724, allocations: 0 / 383.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.3735, allocations: 407.9 kB / 384 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.3736, allocations: 96.8 kB / 384.1 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.3737, allocations: 8 kB / 384.1 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003052/0.374, allocations: 20.05 kB / 384.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.239e-05/0.3741, allocations: 19.97 kB / 384.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.3741, allocations: 4 kB / 384.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002002/0.3744, allocations: 152.2 kB / 384.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3744, allocations: 0 / 384.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005032/0.3749, allocations: 67.95 kB / 384.3 MB, free: 10.64 MB / 314.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.001367/0.3763, allocations: 0.9383 MB / 385.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.3773, allocations: 413.2 kB / 385.7 MB, free: 9.242 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3773, allocations: 0 / 385.7 MB, free: 9.242 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006876/0.378, allocations: 331 kB / 386 MB, free: 8.895 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.3784, allocations: 28.3 kB / 386 MB, free: 8.867 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.3818, allocations: 1.431 MB / 387.5 MB, free: 7.371 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.3822, allocations: 0.7518 MB / 388.2 MB, free: 6.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.3824, allocations: 67.41 kB / 388.3 MB, free: 6.523 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.3824, allocations: 3.938 kB / 388.3 MB, free: 6.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.665/3.047, allocations: 5.36 MB / 393.6 MB, free: 1.16 MB / 314.7 MB "Error: Could not read variable resistor11.n.der(v) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable resistor11.n.der(v) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable resistor12.n.der(v) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable resistor12.n.der(v) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.P[1,1] in file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.P[1,1] from file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.P[1,2] in file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.P[1,2] from file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.der(x[1]) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.der(x[1]) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat failed! Error: Could not read variable stateSelect.set1.x[1] in file ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat. Warning: Get data of variable stateSelect.set1.x[1] from file ModelicaTest_3.2.2_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