Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001163/0.001163, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 59.91 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2985, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01389/0.3124, allocations: 12.92 MB / 421.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008803/0.3212, allocations: 4.256 MB / 426 MB, free: 308 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002319/0.3236, allocations: 83.62 kB / 426.1 MB, free: 224 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002588/0.3262, allocations: 1.013 MB / 427.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003476/0.3297, allocations: 1.235 MB / 428.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.3309, allocations: 0.5266 MB / 428.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005239/0.3361, allocations: 4.653 MB / 433.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00434/0.3405, allocations: 3.694 MB / 437.2 MB, free: 5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00402/0.3445, allocations: 2.142 MB / 439.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004421/0.349, allocations: 2.565 MB / 441.9 MB, free: 296 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001551/0.3506, allocations: 0.5508 MB / 442.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.3525, allocations: 0.6482 MB / 443.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001452/0.354, allocations: 1.523 MB / 444.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004109/0.3581, allocations: 2.485 MB / 447.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008966/0.3671, allocations: 7.455 MB / 454.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.3672, allocations: 0 / 454.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3672, allocations: 0 / 454.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002405/0.3674, allocations: 0 / 454.5 MB, free: 3.586 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.01195/0.3794, allocations: 4.838 MB / 459.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3795, allocations: 8.031 kB / 459.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007551/0.3802, allocations: 0.4981 MB / 459.9 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00182/0.382, allocations: 0.5526 MB / 460.4 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005381/0.3874, allocations: 2.608 MB / 463.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.3876, allocations: 267 kB / 463.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005485/0.3882, allocations: 351.9 kB / 463.7 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008081/0.3963, allocations: 5.032 MB / 468.7 MB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.3964, allocations: 7.953 kB / 468.7 MB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005099/0.3969, allocations: 144 kB / 468.8 MB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002666/0.3972, allocations: 179.1 kB / 469 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009846/0.4071, allocations: 4.306 MB / 473.3 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03502/0.4421, allocations: 14.75 MB / 488.1 MB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006965/0.4491, allocations: 4.194 MB / 492.3 MB, free: 13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004801/0.454, allocations: 1.998 MB / 494.3 MB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003895/0.4544, allocations: 135.1 kB / 494.4 MB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.972e-05/0.4545, allocations: 52.56 kB / 494.4 MB, free: 10.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 5.821e-06/0.4545, allocations: 0 / 494.4 MB, free: 10.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02481/0.4793, allocations: 10.02 MB / 0.4926 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.4794, allocations: 77.41 kB / 0.4927 GB, free: 0.582 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004974/0.4844, allocations: 2.514 MB / 0.4952 GB, free: 14.05 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003386/0.4848, allocations: 69.58 kB / 0.4952 GB, free: 13.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001839/0.4866, allocations: 1.662 MB / 0.4969 GB, free: 12.29 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000902/0.4875, allocations: 0.763 MB / 0.4976 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009808/0.4885, allocations: 416.5 kB / 0.498 GB, free: 11.11 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4887, allocations: 309.1 kB / 0.4983 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002297/0.491, allocations: 1.301 MB / 0.4996 GB, free: 9.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00256/0.4935, allocations: 1.775 MB / 0.5013 GB, free: 7.539 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004768/0.4983, allocations: 3.215 MB / 0.5044 GB, free: 4.141 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.759e-05/0.4984, allocations: 7.938 kB / 0.5044 GB, free: 4.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007373/0.5058, allocations: 4.08 MB / 0.5084 GB, free: 28 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.5058, allocations: 12 kB / 0.5084 GB, free: 16 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-05/0.5059, allocations: 12 kB / 0.5085 GB, free: 4 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/0.5087, allocations: 0.8799 MB / 0.5093 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002255/0.511, allocations: 0.5265 MB / 0.5098 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/0.522, allocations: 9.472 MB / 0.5191 GB, free: 4.691 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/0.5244, allocations: 123.9 kB / 0.5192 GB, free: 4.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004267/0.5248, allocations: 84 kB / 0.5193 GB, free: 4.488 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.002515/0.5274, allocations: 1.234 MB / 0.5205 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008735/0.5282, allocations: 290.2 kB / 0.5208 GB, free: 2.961 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007463/0.5357, allocations: 3.723 MB / 0.5244 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-05/0.5358, allocations: 24 kB / 0.5244 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.25e-05/0.5358, allocations: 4 kB / 0.5244 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.67e-05/0.5358, allocations: 15.89 kB / 0.5244 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01716/0.553, allocations: 8.018 MB / 0.5323 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.553, allocations: 4 kB / 0.5323 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.5548, allocations: 387.8 kB / 0.5326 GB, free: 6.645 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003299/0.5581, allocations: 0.929 MB / 0.5335 GB, free: 5.699 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002756/0.5584, allocations: 55.97 kB / 0.5336 GB, free: 5.645 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2285/0.7869, allocations: 11.1 MB / 0.5444 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.787, allocations: 3.938 kB / 0.5444 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007149/0.7941, allocations: 5.524 MB / 0.5498 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/0.7955, allocations: 0.642 MB / 0.5505 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004062/0.7959, allocations: 51.48 kB / 0.5505 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.7972, allocations: 117 kB / 0.5506 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004033/0.7977, allocations: 182.5 kB / 0.5508 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.7978, allocations: 59.03 kB / 0.5509 GB, free: 117.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002147/0.7999, allocations: 1.742 MB / 0.5526 GB, free: 116.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.8, allocations: 0 / 0.5526 GB, free: 116.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002149/0.8021, allocations: 0.7928 MB / 0.5533 GB, free: 116.4 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.00727/0.8094, allocations: 6.224 MB / 0.5594 GB, free: 112.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005005/0.8144, allocations: 3.897 MB / 0.5632 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.8144, allocations: 2.312 kB / 0.5632 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00308/0.8175, allocations: 2.481 MB / 0.5656 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003407/0.821, allocations: 0.7839 MB / 0.5664 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03758/0.8585, allocations: 29.66 MB / 0.5954 GB, free: 75.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/0.8605, allocations: 2.774 MB / 0.5981 GB, free: 73.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001922/0.8625, allocations: 0.6868 MB / 0.5987 GB, free: 72.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/0.8641, allocations: 1.417 MB / 0.6001 GB, free: 71.05 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/0.8641, allocations: 0 / 0.6001 GB, free: 71.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1096/0.9737, allocations: 73.76 MB / 0.6722 GB, free: 13.92 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.41/16.38, allocations: 15.94 kB / 0.6722 GB, free: 13.91 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches