Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.674/1.674, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003598, allocations: 12 kB / 233.2 MB, free: 2.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.08336, allocations: 38.78 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003807/0.08722, allocations: 2.248 MB / 274.3 MB, free: 9.855 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.08898, allocations: 0.7213 MB / 275 MB, free: 9.129 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.08921, allocations: 4 kB / 275 MB, free: 9.125 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.08935, allocations: 55.59 kB / 275 MB, free: 9.07 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002901/0.08965, allocations: 95.72 kB / 275.1 MB, free: 8.977 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004344/0.0901, allocations: 87.89 kB / 275.2 MB, free: 8.891 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005111/0.09063, allocations: 288 kB / 275.5 MB, free: 8.605 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004075/0.09105, allocations: 166.1 kB / 275.7 MB, free: 8.441 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002593/0.09132, allocations: 135.5 kB / 275.8 MB, free: 8.309 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002894/0.09163, allocations: 167.3 kB / 276 MB, free: 8.145 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.61e-05/0.09171, allocations: 24 kB / 276 MB, free: 8.121 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.968e-05/0.09181, allocations: 24 kB / 276 MB, free: 8.098 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.269e-05/0.09191, allocations: 67.75 kB / 276.1 MB, free: 8.031 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.09203, allocations: 109.4 kB / 276.2 MB, free: 7.918 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005064/0.09255, allocations: 371.2 kB / 276.5 MB, free: 7.555 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.09257, allocations: 0 / 276.5 MB, free: 7.555 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.09258, allocations: 0 / 276.5 MB, free: 7.555 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.0926, allocations: 0 / 276.5 MB, free: 7.555 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.00142/0.09403, allocations: 0.6239 MB / 277.2 MB, free: 6.883 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.09409, allocations: 8.031 kB / 277.2 MB, free: 6.875 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.09423, allocations: 90.45 kB / 277.3 MB, free: 6.777 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.09436, allocations: 43.53 kB / 277.3 MB, free: 6.734 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/0.09476, allocations: 266.4 kB / 277.6 MB, free: 6.434 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.5e-05/0.09483, allocations: 36.94 kB / 277.6 MB, free: 6.395 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.09495, allocations: 51.89 kB / 277.7 MB, free: 6.344 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.09603, allocations: 447.3 kB / 278.1 MB, free: 5.879 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.09607, allocations: 0 / 278.1 MB, free: 5.879 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.802e-05/0.09614, allocations: 16 kB / 278.1 MB, free: 5.863 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.09617, allocations: 16 kB / 278.1 MB, free: 5.848 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008513/0.09703, allocations: 279.9 kB / 278.4 MB, free: 5.57 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.09995, allocations: 1.322 MB / 279.7 MB, free: 4.16 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006759/0.1007, allocations: 242.9 kB / 280 MB, free: 3.91 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.1007, allocations: 4 kB / 280 MB, free: 3.906 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.1008, allocations: 38.56 kB / 280 MB, free: 3.859 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 6.633e-06/0.1008, allocations: 4 kB / 280 MB, free: 3.855 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.002309/0.1031, allocations: 0.5618 MB / 280.6 MB, free: 3.266 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.1032, allocations: 235.3 kB / 280.8 MB, free: 2.98 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.1035, allocations: 211 kB / 281 MB, free: 2.766 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.1036, allocations: 29.7 kB / 281 MB, free: 2.73 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.1038, allocations: 266.6 kB / 281.3 MB, free: 2.465 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1039, allocations: 102.5 kB / 281.4 MB, free: 2.363 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.1039, allocations: 4 kB / 281.4 MB, free: 2.359 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1041, allocations: 322.8 kB / 281.7 MB, free: 2.035 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.1044, allocations: 83.95 kB / 281.8 MB, free: 1.953 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003568/0.1048, allocations: 163.4 kB / 282 MB, free: 1.766 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.1051, allocations: 95.73 kB / 282 MB, free: 1.672 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1051, allocations: 4 kB / 282.1 MB, free: 1.668 MB / 234.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007476/0.1059, allocations: 273.5 kB / 282.3 MB, free: 1.395 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.1059, allocations: 8 kB / 282.3 MB, free: 1.387 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.1059, allocations: 0 / 282.3 MB, free: 1.387 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.1059, allocations: 7.938 kB / 282.3 MB, free: 1.379 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006268/0.1066, allocations: 79.89 kB / 282.4 MB, free: 1.301 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.1066, allocations: 4 kB / 282.4 MB, free: 1.297 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.1069, allocations: 31.69 kB / 282.4 MB, free: 1.266 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.107, allocations: 8 kB / 282.5 MB, free: 1.258 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002238/0.1072, allocations: 153.8 kB / 282.6 MB, free: 1.098 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.915e-05/0.1073, allocations: 27.8 kB / 282.6 MB, free: 1.07 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.541e-05/0.1074, allocations: 30.66 kB / 282.7 MB, free: 1.043 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.1074, allocations: 7.953 kB / 282.7 MB, free: 1.035 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.1075, allocations: 0 / 282.7 MB, free: 1.035 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.1075, allocations: 3.984 kB / 282.7 MB, free: 1.031 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006453/0.1081, allocations: 393.1 kB / 283.1 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.1081, allocations: 0 / 283.1 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.1087, allocations: 67.91 kB / 283.1 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004953/0.1092, allocations: 88.73 kB / 283.2 MB, free: 452 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.1092, allocations: 8 kB / 283.2 MB, free: 444 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/0.1121, allocations: 1.859 MB / 285.1 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1122, allocations: 0 / 285.1 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.1135, allocations: 0.521 MB / 285.6 MB, free: 13.9 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.1137, allocations: 116.8 kB / 285.7 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.1137, allocations: 11.95 kB / 285.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.114, allocations: 12 kB / 285.7 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.853e-05/0.1141, allocations: 19.97 kB / 285.8 MB, free: 13.72 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.634e-05/0.1142, allocations: 11.98 kB / 285.8 MB, free: 13.71 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001913/0.1144, allocations: 160.2 kB / 285.9 MB, free: 13.55 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1144, allocations: 0 / 285.9 MB, free: 13.55 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005403/0.1149, allocations: 115.5 kB / 286 MB, free: 13.44 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (18): * Single equations (assignments): 17 * 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: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001634/0.1166, allocations: 1.061 MB / 287.1 MB, free: 12.35 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006895/0.1173, allocations: 223.6 kB / 287.3 MB, free: 12.13 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.1173, allocations: 4 kB / 287.3 MB, free: 12.12 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006699/0.118, allocations: 282.5 kB / 287.6 MB, free: 11.84 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.1183, allocations: 27.94 kB / 287.6 MB, free: 11.81 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003993/0.1223, allocations: 1.929 MB / 289.6 MB, free: 9.824 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004504/0.1228, allocations: 0.7908 MB / 290.3 MB, free: 9.008 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.1231, allocations: 107.4 kB / 290.4 MB, free: 8.902 MB / 250.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1231, allocations: 0 / 290.4 MB, free: 8.902 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.706/2.829, allocations: 5.248 MB / 295.7 MB, free: 3.645 MB / 250.7 MB "Error: Could not read variable sineVoltage.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat. Warning: Get data of variable sineVoltage.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat failed! " Variables in the reference:time,L1.iinternal,L2.iinternal,L3.iinternal Variables in the result:C1.C,C1.IC,C1.UIC,C1.i,C1.n.i,C1.n.v,C1.p.i,C1.p.v,C1.v,C1.vinternal,C2.C,C2.IC,C2.UIC,C2.i,C2.n.i,C2.n.v,C2.p.i,C2.p.v,C2.v,C2.vinternal,L1.IC,L1.ICP.L,L1.ICP.di,L1.ICP.v,L1.L,L1.UIC,L1.i,L1.iinternal,L1.n.i,L1.n.v,L1.p.i,L1.p.v,L1.v,L2.IC,L2.ICP.L,L2.ICP.di,L2.ICP.v,L2.L,L2.UIC,L2.i,L2.iinternal,L2.n.i,L2.n.v,L2.p.i,L2.p.v,L2.v,L3.IC,L3.ICP.L,L3.ICP.di,L3.ICP.v,L3.L,L3.UIC,L3.i,L3.iinternal,L3.n.i,L3.n.v,L3.p.i,L3.p.v,L3.v,R1.R,R1.i,R1.n.i,R1.n.v,R1.p.i,R1.p.v,R1.v,R2.R,R2.i,R2.n.i,R2.n.v,R2.p.i,R2.p.v,R2.v,R3.R,R3.i,R3.n.i,R3.n.v,R3.p.i,R3.p.v,R3.v,R4.R,R4.i,R4.n.i,R4.n.v,R4.p.i,R4.p.v,R4.v,R5.R,R5.i,R5.n.i,R5.n.v,R5.p.i,R5.p.v,R5.v,der(C1.vinternal),der(C2.vinternal),der(L1.iinternal),der(L2.iinternal),der(L3.iinternal),ground.p.i,ground.p.v,k1.M,k1.inductiveCouplePin1.L,k1.inductiveCouplePin1.di,k1.inductiveCouplePin1.v,k1.inductiveCouplePin2.L,k1.inductiveCouplePin2.di,k1.inductiveCouplePin2.v,k1.k,k2.M,k2.inductiveCouplePin1.L,k2.inductiveCouplePin1.di,k2.inductiveCouplePin1.v,k2.inductiveCouplePin2.L,k2.inductiveCouplePin2.di,k2.inductiveCouplePin2.v,k2.k,k3.M,k3.inductiveCouplePin1.L,k3.inductiveCouplePin1.di,k3.inductiveCouplePin1.v,k3.inductiveCouplePin2.L,k3.inductiveCouplePin2.di,k3.inductiveCouplePin2.v,k3.k,sineVoltage.FREQ,sineVoltage.TD,sineVoltage.THETA,sineVoltage.VA,sineVoltage.VO,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.v,time