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.0008194/0.0008195, allocations: 91.86 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008686/0.0008687, allocations: 194.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 8 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1163, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008283/0.1247, allocations: 6.805 MB / 365.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006348/0.1311, allocations: 2.552 MB / 367.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.1325, allocations: 67.69 kB / 367.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.1339, allocations: 437.2 kB / 368.2 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002217/0.1361, allocations: 0.6373 MB / 368.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009382/0.137, allocations: 275.6 kB / 369.1 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2675/0.4046, allocations: 3.362 MB / 372.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006088/0.4107, allocations: 2.502 MB / 374.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003673/0.4144, allocations: 1.18 MB / 376.1 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005101/0.4196, allocations: 1.589 MB / 377.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009134/0.4205, allocations: 188.1 kB / 377.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001723/0.4223, allocations: 367.3 kB / 378.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001348/0.4236, allocations: 0.9051 MB / 379.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002042/0.4257, allocations: 0.6626 MB / 379.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008245/0.4339, allocations: 4.963 MB / 384.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.434, allocations: 1.031 kB / 384.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.434, allocations: 0 / 384.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002105/0.4342, allocations: 0 / 384.8 MB, free: 7.703 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.008395/0.4426, allocations: 3.23 MB / 388 MB, free: 5.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.4427, allocations: 9.688 kB / 388 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00129/0.444, allocations: 431.5 kB / 388.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001828/0.4458, allocations: 434.4 kB / 388.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003849/0.4497, allocations: 2.026 MB / 390.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.4499, allocations: 220.1 kB / 391.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004808/0.4503, allocations: 286.1 kB / 391.4 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008115/0.4585, allocations: 4.179 MB / 395.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.397e-05/0.4586, allocations: 0 / 395.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002937/0.4589, allocations: 124.5 kB / 395.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/0.459, allocations: 141.6 kB / 395.8 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005954/0.465, allocations: 3.479 MB / 399.3 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02/0.485, allocations: 10.96 MB / 410.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.4878, allocations: 2.648 MB / 412.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002363/0.4902, allocations: 1.493 MB / 414.4 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002694/0.4905, allocations: 129.7 kB / 414.5 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.4906, allocations: 43.56 kB / 414.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=128): time 3.586e-06/0.4906, allocations: 0 / 414.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=133): time 0.009617/0.5002, allocations: 5.186 MB / 419.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.5003, allocations: 90.42 kB / 419.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003593/0.5039, allocations: 1.902 MB / 421.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.504, allocations: 45.7 kB / 421.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009557/0.505, allocations: 1.319 MB / 423.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003911/0.5054, allocations: 457.6 kB / 423.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.5055, allocations: 28 kB / 423.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5057, allocations: 365.9 kB / 423.9 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.507, allocations: 0.8198 MB / 424.8 MB, free: 7.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.5084, allocations: 1.175 MB / 425.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.51, allocations: 1.023 MB / 427 MB, free: 5.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.51, allocations: 0 / 427 MB, free: 5.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004294/0.5143, allocations: 2.527 MB / 429.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.5144, allocations: 12.19 kB / 429.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.5144, allocations: 12 kB / 429.5 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/0.5163, allocations: 472.9 kB / 430 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.5176, allocations: 345.9 kB / 430.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005163/0.5227, allocations: 4.062 MB / 434.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/0.5246, allocations: 85.41 kB / 434.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/0.5248, allocations: 60 kB / 434.5 MB, free: 13.6 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 (158): * Single equations (assignments): 153 * 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%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002561/0.5273, allocations: 1.045 MB / 435.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007275/0.5281, allocations: 193.8 kB / 435.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003787/0.5319, allocations: 2.15 MB / 437.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.743e-05/0.5319, allocations: 19.98 kB / 437.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.532, allocations: 4 kB / 437.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.532, allocations: 7.984 kB / 437.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008716/0.5407, allocations: 5.197 MB / 443.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.5407, allocations: 0 / 443.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009271/0.5417, allocations: 235.6 kB / 443.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.5434, allocations: 457.9 kB / 443.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.831e-05/0.5435, allocations: 29.23 kB / 443.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004814/0.5483, allocations: 3.971 MB / 447.8 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.5483, allocations: 6.547 kB / 447.8 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005635/0.554, allocations: 3.263 MB / 451.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.5554, allocations: 466.6 kB / 451.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003177/0.5557, allocations: 28 kB / 451.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.5568, allocations: 105 kB / 451.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.557, allocations: 96.77 kB / 451.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.902e-05/0.5571, allocations: 39.98 kB / 451.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002349/0.5595, allocations: 1.323 MB / 453.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5595, allocations: 0 / 453.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002274/0.5618, allocations: 0.5605 MB / 453.7 MB, free: 10.16 MB / 366.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 (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%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00551/0.5673, allocations: 3.887 MB / 457.6 MB, free: 6.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003597/0.5709, allocations: 2.195 MB / 459.8 MB, free: 4.027 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.5709, allocations: 5.812 kB / 459.8 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001928/0.5729, allocations: 1.21 MB / 461 MB, free: 2.797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.5755, allocations: 0.4976 MB / 461.5 MB, free: 2.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04352/0.619, allocations: 16.88 MB / 478.3 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00298/0.622, allocations: 2.423 MB / 480.8 MB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002448/0.6245, allocations: 499.3 kB / 481.3 MB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002067/0.6266, allocations: 1.065 MB / 482.3 MB, free: 12.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6266, allocations: 0 / 482.3 MB, free: 12.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09747/0.7241, allocations: 48.39 MB / 0.5183 GB, free: 12.66 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004036/0.7245, allocations: 269.5 kB / 0.5185 GB, free: 12.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.465/4.19, allocations: 0 / 0.5185 GB, free: 12.31 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