Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001035/0.001036, allocations: 96.92 kB / 16.3 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 183.7 kB / 17.2 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.2 MB / 241.1 MB, free: 296 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 4 kB / 300.8 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 50.4 MB / 351.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.004957/0.1324, allocations: 4.502 MB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.1356, allocations: 1.672 MB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003483/0.136, allocations: 20 kB / 357.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005151/0.1365, allocations: 194.8 kB / 357.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.138, allocations: 0.6496 MB / 358.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005549/0.1385, allocations: 223.6 kB / 358.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000687/0.1392, allocations: 0.5539 MB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002571/0.1418, allocations: 1.444 MB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004181/0.1423, allocations: 283 kB / 360.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004647/0.1427, allocations: 390.4 kB / 361.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.516e-05/0.1428, allocations: 40 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00045/0.1433, allocations: 171.8 kB / 361.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.1434, allocations: 127.5 kB / 361.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.1435, allocations: 165.3 kB / 361.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009006/0.1444, allocations: 0.8881 MB / 362.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1445, allocations: 4 kB / 362.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1445, allocations: 0 / 362.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1445, allocations: 0 / 362.5 MB, free: 8.555 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.002929/0.1474, allocations: 1.21 MB / 363.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1475, allocations: 8.031 kB / 363.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001722/0.1477, allocations: 152.1 kB / 363.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004386/0.1521, allocations: 0.6508 MB / 364.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006294/0.1527, allocations: 413.9 kB / 364.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.36e-05/0.1528, allocations: 70 kB / 365 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.1529, allocations: 96 kB / 365.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1546, allocations: 0.9819 MB / 366.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.1547, allocations: 7.906 kB / 366.1 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.229e-05/0.1548, allocations: 40 kB / 366.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.1548, allocations: 27.94 kB / 366.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.1564, allocations: 0.9253 MB / 367.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004543/0.1609, allocations: 3.359 MB / 370.4 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2335/0.3944, allocations: 2.241 MB / 372.7 MB, free: 21.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001644/0.3947, allocations: 99.31 kB / 372.8 MB, free: 21.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.895e-05/0.3947, allocations: 43.08 kB / 372.8 MB, free: 21.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.026e-06/0.3947, allocations: 0 / 372.8 MB, free: 21.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001837/0.3966, allocations: 0.7289 MB / 373.5 MB, free: 21.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.3967, allocations: 116.7 kB / 373.7 MB, free: 21.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004134/0.3971, allocations: 267.2 kB / 373.9 MB, free: 21.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.3971, allocations: 38.7 kB / 374 MB, free: 21.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002857/0.3974, allocations: 383.4 kB / 374.3 MB, free: 21.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.3976, allocations: 222 kB / 374.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.3977, allocations: 15.91 kB / 374.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3978, allocations: 347.7 kB / 374.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005489/0.3984, allocations: 224 kB / 375.1 MB, free: 20.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006686/0.3991, allocations: 439.2 kB / 375.6 MB, free: 20.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.3996, allocations: 290.4 kB / 375.8 MB, free: 20.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.3996, allocations: 2.25 kB / 375.8 MB, free: 20.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001185/0.4008, allocations: 0.7579 MB / 376.6 MB, free: 20.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.4009, allocations: 7.438 kB / 376.6 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.4009, allocations: 6.875 kB / 376.6 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.4009, allocations: 11 kB / 376.6 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000697/0.4016, allocations: 190 kB / 376.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.185e-05/0.4016, allocations: 16.77 kB / 376.8 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.4021, allocations: 84.38 kB / 376.9 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.073e-05/0.4021, allocations: 37.62 kB / 376.9 MB, free: 20.16 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.0003116/0.4024, allocations: 218.7 kB / 377.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.4026, allocations: 43.97 kB / 377.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/0.404, allocations: 0.659 MB / 377.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.404, allocations: 7.344 kB / 377.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.404, allocations: 1.5 kB / 377.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.817e-05/0.404, allocations: 5.125 kB / 377.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00244/0.4065, allocations: 1.49 MB / 379.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.4065, allocations: 1.406 kB / 379.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.4071, allocations: 145.5 kB / 379.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.4071, allocations: 3.906 kB / 379.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.4071, allocations: 13.64 kB / 379.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.822e-06/0.4071, allocations: 8.047 kB / 379.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4071, allocations: 0 / 379.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.4087, allocations: 1.153 MB / 380.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.363e-05/0.4088, allocations: 129 kB / 380.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.4089, allocations: 14.31 kB / 380.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.4092, allocations: 27.34 kB / 380.9 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.4093, allocations: 40.98 kB / 380.9 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.4094, allocations: 19.56 kB / 380.9 MB, free: 17.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.4096, allocations: 182.2 kB / 381.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4096, allocations: 4 kB / 381.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008045/0.4104, allocations: 226.8 kB / 381.3 MB, free: 17.8 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.001791/0.4122, allocations: 1.872 MB / 383.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.4133, allocations: 0.6125 MB / 383.8 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4133, allocations: 0.5 kB / 383.8 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000486/0.4138, allocations: 311.7 kB / 384.1 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.4142, allocations: 32.97 kB / 384.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006063/0.4203, allocations: 7.398 MB / 391.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006559/0.421, allocations: 0.9157 MB / 392.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004313/0.4214, allocations: 80.12 kB / 392.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003801/0.4218, allocations: 257.1 kB / 392.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4218, allocations: 1.25 kB / 392.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.4454, allocations: 8.655 MB / 401.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/0.4456, allocations: 203.7 kB / 401.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.425, allocations: 4 kB / 401.6 MB, free: 5.855 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat