Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",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.001152/0.001152, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001169/0.00117, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001132, allocations: 51.91 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2818, allocations: 49.43 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01339/0.2952, allocations: 12.88 MB / 413.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008022/0.3033, allocations: 4.182 MB / 417.3 MB, free: 7.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002415/0.3058, allocations: 83.69 kB / 417.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002655/0.3085, allocations: 0.9977 MB / 418.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00368/0.3122, allocations: 1.243 MB / 419.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.3135, allocations: 0.5071 MB / 420.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004999/0.3185, allocations: 4.652 MB / 424.8 MB, free: 184 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004318/0.3228, allocations: 3.686 MB / 428.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003967/0.3268, allocations: 2.142 MB / 430.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003941/0.3308, allocations: 2.561 MB / 433.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009822/0.3318, allocations: 0.5508 MB / 433.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001483/0.3333, allocations: 0.6405 MB / 434.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.3348, allocations: 1.519 MB / 435.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003223/0.338, allocations: 2.481 MB / 438.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008085/0.3461, allocations: 7.439 MB / 445.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3461, allocations: 0 / 445.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3462, allocations: 0 / 445.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002133/0.3464, allocations: 0 / 445.8 MB, free: 11.04 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01067/0.357, allocations: 4.807 MB / 450.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3571, allocations: 12.03 kB / 450.7 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006952/0.3578, allocations: 0.4981 MB / 451.2 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/0.3591, allocations: 0.5136 MB / 451.7 MB, free: 5.129 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00456/0.3637, allocations: 2.596 MB / 454.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.3639, allocations: 259.1 kB / 454.5 MB, free: 2.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005269/0.3644, allocations: 351.9 kB / 454.9 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007985/0.3724, allocations: 5.025 MB / 459.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.656e-05/0.3725, allocations: 11.89 kB / 459.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003257/0.3728, allocations: 148 kB / 460 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001665/0.373, allocations: 187 kB / 460.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006935/0.38, allocations: 4.294 MB / 464.5 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02626/0.4062, allocations: 14.76 MB / 479.3 MB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005002/0.4113, allocations: 4.191 MB / 483.5 MB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003419/0.4147, allocations: 1.991 MB / 485.5 MB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003193/0.4151, allocations: 127.1 kB / 485.6 MB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/0.4152, allocations: 64.5 kB / 485.7 MB, free: 2.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=198): time 6.502e-06/0.4152, allocations: 3.938 kB / 485.7 MB, free: 2.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.02103/0.4362, allocations: 10.01 MB / 495.7 MB, free: 8.262 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.4363, allocations: 77.41 kB / 495.7 MB, free: 8.172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00458/0.4409, allocations: 2.506 MB / 498.2 MB, free: 5.645 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000299/0.4412, allocations: 65.7 kB / 498.3 MB, free: 5.574 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.4425, allocations: 1.654 MB / 500 MB, free: 3.902 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008127/0.4433, allocations: 0.7668 MB / 0.489 GB, free: 3.129 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.4444, allocations: 420.4 kB / 0.4894 GB, free: 2.711 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.4445, allocations: 305.1 kB / 0.4897 GB, free: 2.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/0.4467, allocations: 1.305 MB / 0.491 GB, free: 1.102 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002471/0.4491, allocations: 1.771 MB / 0.4927 GB, free: 15.14 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004751/0.4539, allocations: 3.215 MB / 0.4958 GB, free: 11.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.796e-05/0.454, allocations: 4 kB / 0.4958 GB, free: 11.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007374/0.4613, allocations: 4.08 MB / 0.4998 GB, free: 7.633 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.4614, allocations: 12 kB / 0.4998 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.85e-05/0.4614, allocations: 12 kB / 0.4998 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/0.4643, allocations: 0.8837 MB / 0.5007 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002219/0.4666, allocations: 0.5266 MB / 0.5012 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.4777, allocations: 9.484 MB / 0.5105 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003152/0.4809, allocations: 119.9 kB / 0.5106 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005819/0.4815, allocations: 92 kB / 0.5107 GB, free: 12.08 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002891/0.4844, allocations: 1.216 MB / 0.5119 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/0.4858, allocations: 290.2 kB / 0.5121 GB, free: 10.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007273/0.4931, allocations: 3.711 MB / 0.5158 GB, free: 6.828 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/0.4931, allocations: 20 kB / 0.5158 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-05/0.4932, allocations: 8.094 kB / 0.5158 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.312e-05/0.4932, allocations: 11.95 kB / 0.5158 GB, free: 6.789 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01572/0.5089, allocations: 8.017 MB / 0.5236 GB, free: 14.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/0.509, allocations: 0 / 0.5236 GB, free: 14.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.5107, allocations: 387.8 kB / 0.524 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003079/0.5138, allocations: 0.9291 MB / 0.5249 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002057/0.514, allocations: 51.98 kB / 0.525 GB, free: 13.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/0.5259, allocations: 11.11 MB / 0.5358 GB, free: 1.609 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5259, allocations: 4 kB / 0.5358 GB, free: 1.605 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2344/0.7603, allocations: 5.524 MB / 0.5412 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/0.7621, allocations: 0.64 MB / 0.5418 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005342/0.7627, allocations: 53.11 kB / 0.5419 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.7641, allocations: 117.7 kB / 0.542 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003834/0.7645, allocations: 182.4 kB / 0.5422 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.7646, allocations: 57.73 kB / 0.5422 GB, free: 127.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002196/0.7668, allocations: 1.733 MB / 0.5439 GB, free: 127.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7668, allocations: 0 / 0.5439 GB, free: 127.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002349/0.7692, allocations: 0.8011 MB / 0.5447 GB, free: 127.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,88.9%), (2,12,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007523/0.7767, allocations: 6.209 MB / 0.5508 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005062/0.7818, allocations: 3.902 MB / 0.5546 GB, free: 122.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.7819, allocations: 0 / 0.5546 GB, free: 122.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003065/0.7849, allocations: 2.476 MB / 0.557 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/0.7883, allocations: 0.7884 MB / 0.5578 GB, free: 119.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03707/0.8254, allocations: 29.59 MB / 0.5867 GB, free: 90.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002056/0.8275, allocations: 2.773 MB / 0.5894 GB, free: 87.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001876/0.8294, allocations: 0.6749 MB / 0.59 GB, free: 86.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/0.8309, allocations: 1.421 MB / 0.5914 GB, free: 85.29 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.8309, allocations: 3.938 kB / 0.5914 GB, free: 85.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1066/0.9375, allocations: 73.55 MB / 0.6633 GB, free: 12.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/15.86, allocations: 15.59 kB / 0.6633 GB, free: 12.42 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches