Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.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.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_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.001253/0.001253, allocations: 97.59 kB / 16.99 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001702/0.001702, allocations: 200.9 kB / 17.9 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.3 MB / 245.9 MB, free: 10.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002466, allocations: 4 kB / 306.7 MB, free: 1.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1235, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.00554/0.1291, allocations: 4.519 MB / 362.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003977/0.1331, allocations: 1.722 MB / 364.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004649/0.1336, allocations: 20 kB / 364.5 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005743/0.1342, allocations: 194.9 kB / 364.7 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001318/0.1355, allocations: 0.5181 MB / 365.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007697/0.1363, allocations: 339.2 kB / 365.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006791/0.137, allocations: 0.55 MB / 366.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.1397, allocations: 1.447 MB / 367.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005697/0.1403, allocations: 286.9 kB / 367.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005092/0.1408, allocations: 386.5 kB / 368.2 MB, free: 3.777 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.805e-05/0.1409, allocations: 36 kB / 368.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006203/0.1416, allocations: 179.8 kB / 368.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.1417, allocations: 139.4 kB / 368.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.1419, allocations: 161.3 kB / 368.7 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009801/0.1429, allocations: 0.8958 MB / 369.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1429, allocations: 0 / 369.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1429, allocations: 0 / 369.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.1429, allocations: 0 / 369.6 MB, free: 2.367 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003006/0.1459, allocations: 1.205 MB / 370.8 MB, free: 1.113 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.146, allocations: 8.031 kB / 370.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.1462, allocations: 160 kB / 370.9 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004445/0.1506, allocations: 0.6547 MB / 371.6 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.197/0.3476, allocations: 406.8 kB / 372 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.3478, allocations: 72.59 kB / 372.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002139/0.348, allocations: 96.3 kB / 372.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002431/0.3504, allocations: 0.9741 MB / 373.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.3505, allocations: 2.438 kB / 373.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.3506, allocations: 39.95 kB / 373.2 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.682e-05/0.3506, allocations: 27.38 kB / 373.2 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.3526, allocations: 0.9224 MB / 374.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005216/0.3578, allocations: 3.449 MB / 377.6 MB, free: 16.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/0.3601, allocations: 2.234 MB / 379.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001309/0.3602, allocations: 184.1 kB / 380 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.3602, allocations: 44.02 kB / 380 MB, free: 13.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.284e-06/0.3603, allocations: 0 / 380 MB, free: 13.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001419/0.3617, allocations: 0.7222 MB / 380.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.3617, allocations: 123.1 kB / 380.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.362, allocations: 266.2 kB / 381.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.487e-05/0.3621, allocations: 35.14 kB / 381.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.3623, allocations: 382.1 kB / 381.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.3625, allocations: 224.3 kB / 381.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.209e-05/0.3625, allocations: 16.09 kB / 381.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.3626, allocations: 346.3 kB / 382.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004196/0.363, allocations: 228.4 kB / 382.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005381/0.3636, allocations: 435.8 kB / 382.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004913/0.3641, allocations: 293.5 kB / 383 MB, free: 11.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.3641, allocations: 1.219 kB / 383 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001196/0.3653, allocations: 0.7489 MB / 383.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.3653, allocations: 12 kB / 383.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.3654, allocations: 11.19 kB / 383.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.3654, allocations: 10.75 kB / 383.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007183/0.3661, allocations: 193.9 kB / 384 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.504e-05/0.3662, allocations: 17.31 kB / 384 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004025/0.3666, allocations: 80.7 kB / 384.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/0.3666, allocations: 42.64 kB / 384.1 MB, free: 11.49 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002807/0.3669, allocations: 215.5 kB / 384.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.367, allocations: 39.19 kB / 384.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/0.3684, allocations: 0.66 MB / 385.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.3684, allocations: 12.66 kB / 385.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.3684, allocations: 3.906 kB / 385.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.3684, allocations: 4.422 kB / 385.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.3712, allocations: 1.483 MB / 386.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/0.3712, allocations: 1.547 kB / 386.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.3719, allocations: 141.2 kB / 386.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.3719, allocations: 7.5 kB / 386.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.3719, allocations: 18.33 kB / 386.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.3719, allocations: 2.875 kB / 386.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3719, allocations: 1.062 kB / 386.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.3737, allocations: 1.153 MB / 387.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.776e-05/0.3738, allocations: 124.7 kB / 388 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.298e-05/0.3738, allocations: 12.45 kB / 388 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/0.3742, allocations: 30.95 kB / 388 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.3743, allocations: 45.59 kB / 388.1 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.78e-05/0.3743, allocations: 18.44 kB / 388.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002128/0.3745, allocations: 188 kB / 388.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3746, allocations: 0 / 388.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008907/0.3754, allocations: 229.6 kB / 388.5 MB, free: 9.141 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002227/0.3777, allocations: 1.874 MB / 390.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.3789, allocations: 0.6106 MB / 391 MB, free: 7.559 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3789, allocations: 0 / 391 MB, free: 7.559 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004698/0.3794, allocations: 310.6 kB / 391.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.3798, allocations: 34.39 kB / 391.3 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005495/0.3853, allocations: 7.406 MB / 398.7 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.3857, allocations: 0.9184 MB / 399.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003474/0.3861, allocations: 79.14 kB / 399.7 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.3864, allocations: 257.1 kB / 400 MB, free: 312 kB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3864, allocations: 0 / 400 MB, free: 312 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.4067, allocations: 8.713 MB / 408.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.4069, allocations: 195.9 kB / 408.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/2.452, allocations: 2.734 kB / 408.9 MB, free: 10.65 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat