Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",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.0009437/0.0009438, allocations: 87.61 kB / 16.31 MB, free: 6.457 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.0009186/0.0009188, allocations: 181.3 kB / 17.21 MB, free: 6.328 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.383/1.383, allocations: 223.3 MB / 241.2 MB, free: 348 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003796, allocations: 4 kB / 300.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1248, allocations: 50.41 MB / 351.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.231/0.3558, allocations: 24.68 MB / 376 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01687/0.3728, allocations: 6.534 MB / 382.5 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005832/0.3786, allocations: 237.9 kB / 382.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005354/0.384, allocations: 1.366 MB / 384.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01209/0.3961, allocations: 2.218 MB / 386.4 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006712/0.4029, allocations: 1.371 MB / 387.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.03217/0.435, allocations: 23.04 MB / 410.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08037/0.5155, allocations: 35.64 MB / 446.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01447/0.53, allocations: 6.752 MB / 453.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01637/0.5464, allocations: 7.767 MB / 460.9 MB, free: 7.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005931/0.5524, allocations: 1.141 MB / 462.1 MB, free: 6.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01073/0.5631, allocations: 1.375 MB / 463.4 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008587/0.5718, allocations: 3.2 MB / 466.6 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009765/0.5816, allocations: 3.595 MB / 470.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03868/0.6203, allocations: 33.25 MB / 0.4917 GB, free: 13.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.6203, allocations: 4 kB / 0.4917 GB, free: 13.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.6203, allocations: 0 / 0.4917 GB, free: 13.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001216/0.6215, allocations: 0 / 0.4917 GB, free: 13.3 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.05506/0.6766, allocations: 18.24 MB / 0.5095 GB, free: 10.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.6767, allocations: 12.03 kB / 0.5095 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01244/0.6891, allocations: 2.962 MB / 0.5124 GB, free: 7.953 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.417/1.106, allocations: 8.349 MB / 0.5206 GB, free: 99.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02269/1.129, allocations: 11.19 MB / 0.5315 GB, free: 95.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001455/1.13, allocations: 1.339 MB / 0.5328 GB, free: 95.12 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006503/1.137, allocations: 1.746 MB / 0.5345 GB, free: 94.55 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07147/1.208, allocations: 28.63 MB / 0.5625 GB, free: 81.86 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007149/1.209, allocations: 23.55 kB / 0.5625 GB, free: 81.85 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006102/1.215, allocations: 0.7264 MB / 0.5632 GB, free: 81.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006786/1.216, allocations: 0.8633 MB / 0.564 GB, free: 80.45 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04686/1.263, allocations: 24.68 MB / 0.5881 GB, free: 55.75 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1294/1.392, allocations: 88.18 MB / 0.6742 GB, free: 14.29 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4369/1.829, allocations: 35.14 MB / 0.7086 GB, free: 136.2 MB / 494.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01058/1.84, allocations: 5.353 MB / 0.7138 GB, free: 136.2 MB / 494.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007231/1.841, allocations: 212.6 kB / 0.714 GB, free: 136.1 MB / 494.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.977e-05/1.841, allocations: 95.06 kB / 0.7141 GB, free: 136 MB / 494.2 MB Notification: Performance of pre-optimization done (n=589): time 8.155e-06/1.841, allocations: 0 / 0.7141 GB, free: 136 MB / 494.2 MB Notification: Performance of matching and sorting (n=589): time 0.03418/1.875, allocations: 14.52 MB / 0.7283 GB, free: 132.1 MB / 494.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/1.875, allocations: 141 kB / 0.7284 GB, free: 132 MB / 494.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009179/1.884, allocations: 6.373 MB / 0.7346 GB, free: 129.8 MB / 494.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001159/1.885, allocations: 115.6 kB / 0.7347 GB, free: 129.7 MB / 494.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.004612/1.89, allocations: 7.595 MB / 0.7421 GB, free: 124.2 MB / 494.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.003592/1.894, allocations: 2.055 MB / 0.7441 GB, free: 122.6 MB / 494.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001285/1.895, allocations: 210.7 kB / 0.7443 GB, free: 122.5 MB / 494.2 MB Notification: Performance of setup shared object (initialization): time 0.000743/1.896, allocations: 0.7411 MB / 0.7451 GB, free: 122 MB / 494.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006996/1.903, allocations: 4.774 MB / 0.7497 GB, free: 120.2 MB / 494.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01163/1.914, allocations: 9.51 MB / 0.759 GB, free: 112.1 MB / 494.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.925, allocations: 7.165 MB / 0.766 GB, free: 109 MB / 494.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002385/1.926, allocations: 44.44 kB / 0.7661 GB, free: 109 MB / 494.2 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.04108/1.967, allocations: 15.45 MB / 0.7812 GB, free: 101.2 MB / 494.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/1.967, allocations: 76.09 kB / 0.7812 GB, free: 101.1 MB / 494.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003014/1.967, allocations: 160 kB / 0.7814 GB, free: 100.9 MB / 494.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005214/1.972, allocations: 1.68 MB / 0.783 GB, free: 99.66 MB / 494.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008599/1.981, allocations: 2.348 MB / 0.7853 GB, free: 97.62 MB / 494.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01396/1.995, allocations: 10.84 MB / 0.7959 GB, free: 87.32 MB / 494.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01049/2.006, allocations: 1.35 MB / 0.7972 GB, free: 85.96 MB / 494.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002888/2.009, allocations: 0.5273 MB / 0.7977 GB, free: 85.43 MB / 494.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,75.0%) 80} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01911/2.028, allocations: 7.146 MB / 0.8047 GB, free: 78.27 MB / 494.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002472/2.03, allocations: 0.6133 MB / 0.8053 GB, free: 77.65 MB / 494.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02769/2.058, allocations: 10.27 MB / 0.8153 GB, free: 67.28 MB / 494.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01777/2.076, allocations: 7.885 MB / 0.823 GB, free: 59.31 MB / 494.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.564e-05/2.076, allocations: 12.81 kB / 0.823 GB, free: 59.3 MB / 494.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001342/2.076, allocations: 31.88 kB / 0.8231 GB, free: 59.27 MB / 494.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05323/2.129, allocations: 26.21 MB / 0.8487 GB, free: 32.62 MB / 494.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-05/2.129, allocations: 8 kB / 0.8487 GB, free: 32.61 MB / 494.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004095/2.133, allocations: 1.003 MB / 0.8497 GB, free: 31.61 MB / 494.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004863/2.138, allocations: 1.469 MB / 0.8511 GB, free: 30.13 MB / 494.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009541/2.139, allocations: 135.9 kB / 0.8512 GB, free: 30 MB / 494.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01291/2.152, allocations: 10.4 MB / 0.8614 GB, free: 19.48 MB / 494.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/2.152, allocations: 15.94 kB / 0.8614 GB, free: 19.46 MB / 494.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02191/2.174, allocations: 14.31 MB / 0.8754 GB, free: 4.793 MB / 494.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004212/2.178, allocations: 1.452 MB / 0.8768 GB, free: 3.312 MB / 494.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002296/2.181, allocations: 112 kB / 0.8769 GB, free: 3.203 MB / 494.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004861/2.186, allocations: 327.6 kB / 0.8772 GB, free: 2.883 MB / 494.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001491/2.187, allocations: 404.5 kB / 0.8776 GB, free: 2.484 MB / 494.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009073/2.188, allocations: 168.2 kB / 0.8778 GB, free: 2.32 MB / 494.2 MB Notification: Performance of sorting global known variables: time 0.269/2.457, allocations: 4.252 MB / 0.8819 GB, free: 146.1 MB / 0.4983 GB Notification: Performance of sort global known variables: time 4.91e-07/2.457, allocations: 4.109 kB / 0.8819 GB, free: 146.1 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01597/2.473, allocations: 4.043 MB / 0.8859 GB, free: 145.6 MB / 0.4983 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 1 (source.plug_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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,77.8%) 80} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02929/2.502, allocations: 15.12 MB / 0.9006 GB, free: 141.5 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.01932/2.522, allocations: 11.45 MB / 0.9118 GB, free: 137.2 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/2.522, allocations: 3.969 kB / 0.9118 GB, free: 137.2 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.009132/2.531, allocations: 4.722 MB / 0.9164 GB, free: 135.3 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01405/2.545, allocations: 1.494 MB / 0.9179 GB, free: 134.8 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1904/2.736, allocations: 84.68 MB / 1.001 GB, free: 66.05 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01964/2.755, allocations: 11.26 MB / 1.012 GB, free: 55.07 MB / 0.4983 GB Notification: Performance of simCode: alias equations: time 0.01014/2.765, allocations: 3.763 MB / 1.015 GB, free: 51.3 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009948/2.775, allocations: 5.881 MB / 1.021 GB, free: 45.42 MB / 0.4983 GB Notification: Performance of SimCode: time 1.192e-06/2.775, allocations: 5.641 kB / 1.021 GB, free: 45.41 MB / 0.4983 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5336/3.309, allocations: 201.7 MB / 1.218 GB, free: 38.62 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/3.309, allocations: 274.4 kB / 1.218 GB, free: 38.27 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.172/9.482, allocations: 6.719 kB / 1.218 GB, free: 38.27 MB / 0.5139 GB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat