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.001481/0.001481, allocations: 121.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 204.6 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 67.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2985, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01485/0.3134, allocations: 12.91 MB / 421.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008743/0.3222, allocations: 4.256 MB / 426 MB, free: 308 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002745/0.325, allocations: 83.62 kB / 426.1 MB, free: 224 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003146/0.3282, allocations: 1.009 MB / 427.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004507/0.3327, allocations: 1.235 MB / 428.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.3346, allocations: 0.5304 MB / 428.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006317/0.3409, allocations: 4.653 MB / 433.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006058/0.347, allocations: 3.694 MB / 437.2 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004702/0.3517, allocations: 2.138 MB / 439.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00473/0.3565, allocations: 2.565 MB / 441.9 MB, free: 296 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001947/0.3584, allocations: 0.5508 MB / 442.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002218/0.3607, allocations: 0.6599 MB / 443.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.3632, allocations: 1.516 MB / 444.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004762/0.368, allocations: 2.493 MB / 447.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.3781, allocations: 7.455 MB / 454.6 MB, free: 3.574 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.3781, allocations: 0 / 454.6 MB, free: 3.574 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.3781, allocations: 0 / 454.6 MB, free: 3.574 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002675/0.3784, allocations: 3.938 kB / 454.6 MB, free: 3.57 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.01307/0.3915, allocations: 4.827 MB / 459.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.3915, allocations: 12.03 kB / 459.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001702/0.3932, allocations: 0.4981 MB / 459.9 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002444/0.3957, allocations: 0.5487 MB / 460.4 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0058/0.4015, allocations: 2.6 MB / 463 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002727/0.4018, allocations: 267 kB / 463.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/0.4029, allocations: 359.9 kB / 463.7 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.4145, allocations: 5.025 MB / 468.7 MB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001562/0.4147, allocations: 11.95 kB / 468.7 MB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008498/0.4155, allocations: 144 kB / 468.8 MB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000202/0.4158, allocations: 183.1 kB / 469 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009073/0.4248, allocations: 4.29 MB / 473.3 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0279/0.4528, allocations: 14.76 MB / 488.1 MB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0048/0.4576, allocations: 4.198 MB / 492.3 MB, free: 13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003294/0.4609, allocations: 1.995 MB / 494.3 MB, free: 11.01 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003/0.4613, allocations: 139 kB / 494.4 MB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.4613, allocations: 60.97 kB / 494.5 MB, free: 10.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=198): time 4.278e-06/0.4613, allocations: 4 kB / 494.5 MB, free: 10.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.02003/0.4814, allocations: 10.01 MB / 0.4926 GB, free: 0.668 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.4815, allocations: 77.34 kB / 0.4927 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005075/0.4866, allocations: 2.522 MB / 0.4952 GB, free: 14.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004154/0.487, allocations: 65.64 kB / 0.4952 GB, free: 13.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001645/0.4887, allocations: 1.662 MB / 0.4969 GB, free: 12.29 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009557/0.4896, allocations: 0.7669 MB / 0.4976 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001356/0.491, allocations: 416.5 kB / 0.498 GB, free: 11.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4912, allocations: 301.1 kB / 0.4983 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.4938, allocations: 1.301 MB / 0.4996 GB, free: 9.496 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002634/0.4965, allocations: 1.775 MB / 0.5013 GB, free: 7.535 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005196/0.5017, allocations: 3.211 MB / 0.5044 GB, free: 4.141 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.71e-05/0.5017, 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.007826/0.5096, allocations: 4.08 MB / 0.5084 GB, free: 28 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.5096, allocations: 8 kB / 0.5084 GB, free: 20 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.89e-05/0.5097, allocations: 19.98 kB / 0.5085 GB, free: 0 / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002876/0.5126, allocations: 0.8799 MB / 0.5093 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002145/0.5147, allocations: 0.5266 MB / 0.5098 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/0.5265, allocations: 9.474 MB / 0.5191 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/0.5289, allocations: 123.9 kB / 0.5192 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003889/0.5293, allocations: 80 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.002604/0.5319, allocations: 1.227 MB / 0.5205 GB, free: 3.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009442/0.5328, allocations: 290.2 kB / 0.5208 GB, free: 2.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006943/0.5398, allocations: 3.723 MB / 0.5244 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/0.5398, allocations: 20 kB / 0.5244 GB, free: 15.19 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.286e-05/0.5399, allocations: 8 kB / 0.5244 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.609e-05/0.5399, allocations: 11.91 kB / 0.5244 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/0.5553, allocations: 8.025 MB / 0.5323 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.5554, allocations: 0 / 0.5323 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.5571, allocations: 387.8 kB / 0.5326 GB, free: 6.648 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003127/0.5602, allocations: 0.9252 MB / 0.5335 GB, free: 5.707 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002331/0.5605, allocations: 59.97 kB / 0.5336 GB, free: 5.648 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2149/0.7753, allocations: 11.09 MB / 0.5444 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.7754, allocations: 3.844 kB / 0.5444 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007616/0.783, allocations: 5.523 MB / 0.5498 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/0.7846, allocations: 0.645 MB / 0.5505 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004379/0.785, allocations: 54.41 kB / 0.5505 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.7864, allocations: 117 kB / 0.5506 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00044/0.7868, allocations: 175.9 kB / 0.5508 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.787, allocations: 62.12 kB / 0.5508 GB, free: 117.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002141/0.7891, allocations: 1.746 MB / 0.5526 GB, free: 116.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.7891, allocations: 3.469 kB / 0.5526 GB, free: 116.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002255/0.7914, allocations: 0.7903 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.007427/0.7988, allocations: 6.219 MB / 0.5594 GB, free: 112.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005028/0.8039, allocations: 3.904 MB / 0.5632 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.8039, allocations: 0 / 0.5632 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003006/0.8069, allocations: 2.48 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.003337/0.8103, allocations: 0.7937 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.04094/0.8513, allocations: 29.65 MB / 0.5954 GB, free: 75.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/0.8543, allocations: 2.777 MB / 0.5981 GB, free: 73.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002015/0.8563, allocations: 0.6868 MB / 0.5987 GB, free: 72.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001795/0.8581, allocations: 1.409 MB / 0.6001 GB, free: 71.05 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.8581, allocations: 0 / 0.6001 GB, free: 71.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1173/0.9754, allocations: 73.78 MB / 0.6722 GB, free: 13.91 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/16.7, allocations: 3.625 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