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.001006/0.001006, allocations: 99.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 201 kB / 17.89 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000221/0.000221, allocations: 8 kB / 306.7 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 51.49 MB / 358.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.006935/0.1188, allocations: 6.35 MB / 364.6 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004494/0.1234, allocations: 2.623 MB / 367.2 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008286/0.1242, allocations: 59.62 kB / 367.2 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000969/0.1252, allocations: 477.5 kB / 367.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001447/0.1267, allocations: 0.5919 MB / 368.3 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006378/0.1273, allocations: 267.6 kB / 368.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00228/0.1296, allocations: 2.09 MB / 370.6 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1885/0.3181, allocations: 2.496 MB / 373.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.3209, allocations: 1.107 MB / 374.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003159/0.324, allocations: 1.413 MB / 375.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007177/0.3248, allocations: 188.6 kB / 375.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.3261, allocations: 368.5 kB / 376.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.3271, allocations: 0.8786 MB / 377.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009858/0.3281, allocations: 0.6573 MB / 377.7 MB, free: 9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00696/0.3351, allocations: 4.944 MB / 382.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3351, allocations: 0 / 382.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3352, allocations: 0 / 382.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002117/0.3354, allocations: 0 / 382.7 MB, free: 8.09 MB / 302.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.01067/0.346, allocations: 3.227 MB / 385.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/0.3461, allocations: 8.906 kB / 385.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001897/0.348, allocations: 429.5 kB / 386.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002467/0.3505, allocations: 435.4 kB / 386.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00522/0.3557, allocations: 2.022 MB / 388.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002609/0.356, allocations: 223.4 kB / 389 MB, free: 5.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000768/0.3568, allocations: 294.6 kB / 389.3 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00891/0.3657, allocations: 4.147 MB / 393.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.098e-05/0.3658, allocations: 0 / 393.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003167/0.3661, allocations: 129.5 kB / 393.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.3663, allocations: 145.4 kB / 393.7 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005678/0.372, allocations: 3.478 MB / 397.2 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/0.3905, allocations: 10.97 MB / 408.1 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002706/0.3933, allocations: 2.639 MB / 410.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002449/0.3936, allocations: 128.6 kB / 410.9 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.776e-05/0.3936, allocations: 51.52 kB / 411 MB, free: 5.285 MB / 318.1 MB Notification: Performance of pre-optimization done (n=128): time 4.319e-06/0.3936, allocations: 3.938 kB / 411 MB, free: 5.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.00938/0.403, allocations: 5.68 MB / 416.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.4031, allocations: 90.42 kB / 416.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002773/0.4059, allocations: 1.9 MB / 418.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.406, allocations: 45.7 kB / 418.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008673/0.4069, allocations: 1.327 MB / 420 MB, free: 12.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003698/0.4073, allocations: 448.2 kB / 420.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/0.4074, allocations: 29.09 kB / 420.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4075, allocations: 365.9 kB / 420.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.4088, allocations: 0.8315 MB / 421.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.4103, allocations: 1.182 MB / 422.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.4118, allocations: 1.029 MB / 423.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.4118, allocations: 0 / 423.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.004253/0.4161, allocations: 2.574 MB / 426.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.4161, allocations: 12.03 kB / 426.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.4161, allocations: 15.94 kB / 426.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002003/0.4181, allocations: 497.9 kB / 427 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.4195, allocations: 331.5 kB / 427.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005628/0.4251, allocations: 4.367 MB / 431.7 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.4272, allocations: 88.77 kB / 431.7 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.4274, allocations: 64.34 kB / 431.8 MB, free: 15.97 MB / 350.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 (154): * Single equations (assignments): 149 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002244/0.4296, allocations: 1.041 MB / 432.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005429/0.4302, allocations: 189.9 kB / 433 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003522/0.4337, allocations: 2.189 MB / 435.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/0.4338, allocations: 16 kB / 435.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.4338, allocations: 22.45 kB / 435.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.4338, allocations: 3.984 kB / 435.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008346/0.4422, allocations: 5.152 MB / 440.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4422, allocations: 0 / 440.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009582/0.4432, allocations: 223.7 kB / 440.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001807/0.445, allocations: 471.6 kB / 441.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.649e-05/0.4451, allocations: 31.98 kB / 441.1 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005172/0.4503, allocations: 4.312 MB / 445.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4503, allocations: 3.938 kB / 445.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004971/0.4553, allocations: 3.304 MB / 448.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.4565, allocations: 466.7 kB / 449.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.4567, allocations: 24 kB / 449.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.4577, allocations: 107 kB / 449.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.458, allocations: 88.86 kB / 449.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-05/0.4581, allocations: 36 kB / 449.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002073/0.4601, allocations: 1.323 MB / 450.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.122e-06/0.4602, allocations: 0 / 450.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001911/0.4621, allocations: 0.5569 MB / 451.3 MB, free: 12.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (98): * Single equations (assignments): 93 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005414/0.4675, allocations: 4.079 MB / 455.4 MB, free: 8.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003772/0.4713, allocations: 2.231 MB / 457.6 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.4713, allocations: 4.125 kB / 457.6 MB, free: 5.848 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.4732, allocations: 1.22 MB / 458.9 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.4759, allocations: 486.8 kB / 459.3 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03622/0.5121, allocations: 23.5 MB / 482.8 MB, free: 11.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00235/0.5145, allocations: 2.478 MB / 485.3 MB, free: 9.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001731/0.5163, allocations: 483.4 kB / 485.8 MB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/0.5176, allocations: 1.062 MB / 486.8 MB, free: 7.734 MB / 398.1 MB Notification: Performance of SimCode: time 3.006e-06/0.5176, allocations: 4 kB / 486.9 MB, free: 7.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/0.6251, allocations: 48.34 MB / 0.5226 GB, free: 7.859 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002457/0.6254, allocations: 274.2 kB / 0.5229 GB, free: 7.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/3.515, allocations: 0 / 0.5229 GB, free: 7.5 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat