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.001292/0.001292, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 203.9 kB / 18.74 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.439/1.439, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 67.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3058, allocations: 50.54 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01651/0.3223, allocations: 12.92 MB / 421.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009301/0.3317, allocations: 4.256 MB / 426 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.334, allocations: 83.62 kB / 426.1 MB, free: 164 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002786/0.3369, allocations: 0.9704 MB / 427 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003642/0.3405, allocations: 1.18 MB / 428.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.3417, allocations: 0.5228 MB / 428.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005966/0.3477, allocations: 4.645 MB / 433.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005091/0.3528, allocations: 3.697 MB / 437.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004478/0.3573, allocations: 2.134 MB / 439.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004283/0.3616, allocations: 2.561 MB / 441.8 MB, free: 352 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009396/0.3626, allocations: 0.5547 MB / 442.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.3641, allocations: 0.656 MB / 443 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00162/0.3657, allocations: 1.519 MB / 444.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003603/0.3694, allocations: 2.481 MB / 447 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01074/0.3801, allocations: 7.455 MB / 454.4 MB, free: 3.637 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.3802, allocations: 4 kB / 454.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3802, allocations: 0 / 454.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002288/0.3804, allocations: 0 / 454.4 MB, free: 3.633 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.01286/0.3933, allocations: 4.833 MB / 459.3 MB, free: 14.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.3934, allocations: 8.031 kB / 459.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009553/0.3943, allocations: 0.4942 MB / 459.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001857/0.3962, allocations: 0.5487 MB / 460.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005144/0.4013, allocations: 2.621 MB / 463 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000248/0.4016, allocations: 263 kB / 463.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006811/0.4023, allocations: 351.9 kB / 463.6 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009408/0.4117, allocations: 5.032 MB / 468.6 MB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-05/0.4118, allocations: 0 / 468.6 MB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003632/0.4122, allocations: 148 kB / 468.7 MB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002157/0.4124, allocations: 183 kB / 468.9 MB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008264/0.4207, allocations: 4.298 MB / 473.2 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02628/0.447, allocations: 14.76 MB / 488 MB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005263/0.4523, allocations: 4.198 MB / 492.2 MB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00355/0.4559, allocations: 1.998 MB / 494.2 MB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003085/0.4562, allocations: 135.1 kB / 494.3 MB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.4563, allocations: 52.94 kB / 494.3 MB, free: 10.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 3.797e-06/0.4563, allocations: 4 kB / 494.3 MB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02159/0.4779, allocations: 10.02 MB / 0.4925 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/0.478, allocations: 73.41 kB / 0.4926 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004239/0.4823, allocations: 2.514 MB / 0.4951 GB, free: 14.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000256/0.4825, allocations: 69.58 kB / 0.4951 GB, free: 14.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001433/0.484, allocations: 1.666 MB / 0.4968 GB, free: 12.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007435/0.4847, allocations: 0.763 MB / 0.4975 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007447/0.4855, allocations: 424.4 kB / 0.4979 GB, free: 11.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4856, allocations: 301.1 kB / 0.4982 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002181/0.4878, allocations: 1.297 MB / 0.4995 GB, free: 9.547 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002564/0.4904, allocations: 1.775 MB / 0.5012 GB, free: 7.586 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004862/0.4953, allocations: 3.215 MB / 0.5043 GB, free: 4.188 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.4953, allocations: 4 kB / 0.5043 GB, free: 4.184 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007353/0.5027, allocations: 4.089 MB / 0.5083 GB, free: 72 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.5027, allocations: 12 kB / 0.5083 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.5027, allocations: 12 kB / 0.5084 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002924/0.5057, allocations: 0.8795 MB / 0.5092 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.5078, allocations: 0.5227 MB / 0.5097 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.5201, allocations: 9.478 MB / 0.519 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/0.5224, allocations: 115.9 kB / 0.5191 GB, free: 4.621 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/0.5226, allocations: 84 kB / 0.5192 GB, free: 4.539 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.002482/0.525, allocations: 1.23 MB / 0.5204 GB, free: 3.301 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007138/0.5258, allocations: 286.2 kB / 0.5206 GB, free: 3.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006779/0.5326, allocations: 3.719 MB / 0.5243 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.5326, allocations: 20 kB / 0.5243 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.5326, allocations: 12 kB / 0.5243 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/0.5327, allocations: 11.95 kB / 0.5243 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01508/0.5478, allocations: 8.018 MB / 0.5322 GB, free: 7.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.5478, allocations: 4 kB / 0.5322 GB, free: 7.086 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/0.5494, allocations: 383.5 kB / 0.5325 GB, free: 6.711 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003164/0.5526, allocations: 0.9292 MB / 0.5334 GB, free: 5.766 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001839/0.5528, allocations: 63.91 kB / 0.5335 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2306/0.7834, allocations: 11.1 MB / 0.5443 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-05/0.7835, allocations: 3.812 kB / 0.5443 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007369/0.7908, allocations: 5.526 MB / 0.5497 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/0.7922, allocations: 0.6473 MB / 0.5504 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003548/0.7925, allocations: 46.97 kB / 0.5504 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.7938, allocations: 118.4 kB / 0.5505 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004053/0.7942, allocations: 180.6 kB / 0.5507 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.7944, allocations: 58.89 kB / 0.5507 GB, free: 117 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.7966, allocations: 1.738 MB / 0.5524 GB, free: 116.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7966, allocations: 3.812 kB / 0.5524 GB, free: 116.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002171/0.7988, allocations: 0.7953 MB / 0.5532 GB, free: 116.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.007147/0.8059, allocations: 6.219 MB / 0.5593 GB, free: 112.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00487/0.8108, allocations: 3.905 MB / 0.5631 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.8108, allocations: 3.781 kB / 0.5631 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003092/0.8139, allocations: 2.48 MB / 0.5655 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.003487/0.8175, allocations: 0.7897 MB / 0.5663 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03562/0.8531, allocations: 29.63 MB / 0.5952 GB, free: 75.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001789/0.8549, allocations: 2.785 MB / 0.598 GB, free: 73.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001768/0.8567, allocations: 0.6751 MB / 0.5986 GB, free: 72.44 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/0.8581, allocations: 1.421 MB / 0.6 GB, free: 71.02 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8581, allocations: 0 / 0.6 GB, free: 71.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1883/1.046, allocations: 73.78 MB / 0.6721 GB, free: 13.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.1/17.15, allocations: 14.53 kB / 0.6721 GB, free: 13.87 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.1.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