Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 67.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2857, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.01042/0.2961, allocations: 7.778 MB / 416.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005921/0.3021, allocations: 2.714 MB / 419.3 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.3034, allocations: 67.69 kB / 419.3 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.3049, allocations: 0.5664 MB / 419.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002073/0.307, allocations: 0.7419 MB / 420.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009778/0.3079, allocations: 415.4 kB / 421 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003955/0.3119, allocations: 3.288 MB / 424.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004547/0.3165, allocations: 3.585 MB / 427.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003351/0.3199, allocations: 1.671 MB / 429.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.3232, allocations: 2.028 MB / 431.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008221/0.324, allocations: 464 kB / 432.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001339/0.3254, allocations: 0.652 MB / 432.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.3267, allocations: 1.247 MB / 434 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002452/0.3291, allocations: 1.964 MB / 435.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007174/0.3363, allocations: 6.123 MB / 442.1 MB, free: 92 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.3364, allocations: 0 / 442.1 MB, free: 92 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3364, allocations: 0 / 442.1 MB, free: 92 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001728/0.3366, allocations: 0 / 442.1 MB, free: 92 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.008554/0.3451, allocations: 3.896 MB / 445.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.3452, allocations: 12.03 kB / 446 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006514/0.3458, allocations: 429.9 kB / 446.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/0.3473, allocations: 450.5 kB / 446.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003948/0.3512, allocations: 2.183 MB / 449 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.3514, allocations: 221.8 kB / 449.2 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004783/0.3519, allocations: 284 kB / 449.5 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007392/0.3593, allocations: 4.191 MB / 453.7 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-05/0.3594, allocations: 0 / 453.7 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002897/0.3597, allocations: 127.9 kB / 453.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/0.3599, allocations: 137.9 kB / 453.9 MB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006151/0.366, allocations: 3.49 MB / 457.4 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/0.3865, allocations: 10.79 MB / 468.2 MB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003351/0.3899, allocations: 2.654 MB / 470.9 MB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002688/0.3926, allocations: 1.493 MB / 472.4 MB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002828/0.393, allocations: 122.1 kB / 472.5 MB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/0.393, allocations: 47.5 kB / 472.5 MB, free: 0.957 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 4.969e-06/0.393, allocations: 4 kB / 472.5 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.01046/0.4035, allocations: 5.219 MB / 477.8 MB, free: 11.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.4036, allocations: 90.42 kB / 477.8 MB, free: 11.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.4073, allocations: 1.925 MB / 479.8 MB, free: 9.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.4074, allocations: 53.64 kB / 479.8 MB, free: 9.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.4086, allocations: 1.353 MB / 481.2 MB, free: 8.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004948/0.4092, allocations: 483.9 kB / 481.7 MB, free: 7.746 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005146/0.4097, allocations: 271.5 kB / 481.9 MB, free: 7.473 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.4098, allocations: 313.1 kB / 482.2 MB, free: 7.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.4112, allocations: 0.812 MB / 483 MB, free: 6.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.4129, allocations: 1.178 MB / 484.2 MB, free: 5.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/0.4161, allocations: 2.082 MB / 486.3 MB, free: 2.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.4162, allocations: 4 kB / 486.3 MB, free: 2.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.00469/0.4209, allocations: 2.531 MB / 488.8 MB, free: 264 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.4209, allocations: 8 kB / 488.8 MB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.71e-05/0.4209, allocations: 12 kB / 488.9 MB, free: 244 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002019/0.423, allocations: 483.1 kB / 489.3 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.4244, allocations: 331.5 kB / 489.6 MB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006216/0.4306, allocations: 4.403 MB / 494 MB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.4322, allocations: 87.97 kB / 494.1 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/0.4325, allocations: 60 kB / 494.2 MB, free: 10.76 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (158): * Single equations (assignments): 153 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002191/0.4347, allocations: 1.051 MB / 495.2 MB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007442/0.4354, allocations: 206.7 kB / 495.4 MB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004497/0.4399, allocations: 2.137 MB / 497.6 MB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.99e-05/0.44, allocations: 20 kB / 497.6 MB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.44, allocations: 4 kB / 497.6 MB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.44, allocations: 3.984 kB / 497.6 MB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.4514, allocations: 5.178 MB / 0.491 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.4515, allocations: 0 / 0.491 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.4525, allocations: 231.6 kB / 0.4912 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/0.4545, allocations: 452.5 kB / 0.4917 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.4547, allocations: 35.98 kB / 0.4917 GB, free: 1.332 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006068/0.4607, allocations: 4.311 MB / 0.4959 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4608, allocations: 0 / 0.4959 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005666/0.4664, allocations: 3.268 MB / 0.4991 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.4676, allocations: 467.7 kB / 0.4995 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004729/0.4681, allocations: 32 kB / 0.4996 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.4694, allocations: 95.91 kB / 0.4997 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/0.4696, allocations: 100.7 kB / 0.4998 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.4698, allocations: 39.98 kB / 0.4998 GB, free: 8.832 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002663/0.4724, allocations: 1.342 MB / 0.5011 GB, free: 7.496 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4725, allocations: 0 / 0.5011 GB, free: 7.496 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002282/0.4748, allocations: 0.5585 MB / 0.5017 GB, free: 6.938 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * 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 (104): * Single equations (assignments): 99 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006446/0.4812, allocations: 3.937 MB / 0.5055 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004098/0.4853, allocations: 2.196 MB / 0.5076 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.4854, allocations: 8.75 kB / 0.5076 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002187/0.4876, allocations: 1.198 MB / 0.5088 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002917/0.4905, allocations: 0.5171 MB / 0.5093 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04217/0.5327, allocations: 20.59 MB / 0.5294 GB, free: 9.852 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004131/0.5369, allocations: 2.428 MB / 0.5318 GB, free: 7.395 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001847/0.5388, allocations: 499.3 kB / 0.5323 GB, free: 6.902 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/0.5407, allocations: 1.066 MB / 0.5333 GB, free: 5.836 MB / 462.1 MB Notification: Performance of SimCode: time 1.593e-06/0.5407, allocations: 4 kB / 0.5333 GB, free: 5.832 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3103/0.851, allocations: 51.95 MB / 0.5841 GB, free: 90.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.65, allocations: 14.14 kB / 0.5841 GB, free: 90.22 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/Transformers/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches