Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 180.2 kB / 16.38 MB, free: 5.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008987/0.0008986, allocations: 101.2 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002773/0.0002773, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2811, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3848, allocations: 80.72 MB / 482.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.3851, allocations: 76.89 kB / 482.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02233/0.4074, allocations: 8.396 MB / 490.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4075, allocations: 0 / 490.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.4075, allocations: 12 kB / 490.8 MB, free: 7.184 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001257/0.4088, allocations: 0.787 MB / 491.6 MB, free: 6.348 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.4089, allocations: 12.03 kB / 491.6 MB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001563/0.409, allocations: 99.72 kB / 491.7 MB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.4091, allocations: 71.19 kB / 491.7 MB, free: 6.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000466/0.4096, allocations: 354.6 kB / 492.1 MB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.137e-05/0.4097, allocations: 37.31 kB / 492.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-05/0.4097, allocations: 59.86 kB / 492.2 MB, free: 5.684 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007997/0.4105, allocations: 499.5 kB / 492.7 MB, free: 5.176 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.4106, allocations: 4 kB / 492.7 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.443e-05/0.4106, allocations: 20 kB / 492.7 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.4106, allocations: 12 kB / 492.7 MB, free: 5.141 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006556/0.4113, allocations: 352.7 kB / 493.1 MB, free: 4.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.414, allocations: 1.748 MB / 494.8 MB, free: 2.949 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004634/0.4145, allocations: 265.2 kB / 495.1 MB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.4145, allocations: 11.94 kB / 495.1 MB, free: 2.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.4146, allocations: 42.5 kB / 495.1 MB, free: 2.609 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.543e-06/0.4146, allocations: 0 / 495.1 MB, free: 2.609 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001964/0.4166, allocations: 0.9782 MB / 496.1 MB, free: 1.559 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.4166, allocations: 85.11 kB / 496.2 MB, free: 1.457 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003854/0.417, allocations: 336.8 kB / 496.5 MB, free: 1.121 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.4171, allocations: 33.7 kB / 496.5 MB, free: 1.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.4173, allocations: 295.3 kB / 496.8 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.223e-05/0.4174, allocations: 110.4 kB / 496.9 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.793e-05/0.4174, allocations: 12 kB / 496.9 MB, free: 0.668 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4175, allocations: 350.8 kB / 497.3 MB, free: 324 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.4178, allocations: 104.8 kB / 497.4 MB, free: 220 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.4181, allocations: 198.7 kB / 497.6 MB, free: 15.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.4183, allocations: 134.9 kB / 497.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4183, allocations: 0 / 497.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008016/0.4191, allocations: 453.2 kB / 498.2 MB, free: 15.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4192, allocations: 8 kB / 498.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.4192, allocations: 4 kB / 498.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.4195, allocations: 81.88 kB / 498.3 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.4199, allocations: 87.83 kB / 498.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.4224, allocations: 2.869 MB / 0.4895 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.4227, allocations: 27.84 kB / 0.4895 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.4228, allocations: 16 kB / 0.4895 GB, free: 12.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002478/0.423, allocations: 165.8 kB / 0.4897 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.4232, allocations: 43.52 kB / 0.4897 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.377e-05/0.4232, allocations: 43.47 kB / 0.4897 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.4233, allocations: 4 kB / 0.4897 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4233, allocations: 4 kB / 0.4898 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.4233, allocations: 0 / 0.4898 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.4247, allocations: 0.9517 MB / 0.4907 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4247, allocations: 0 / 0.4907 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.4249, allocations: 47.98 kB / 0.4907 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002742/0.4252, allocations: 85.48 kB / 0.4908 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.4253, allocations: 15.92 kB / 0.4908 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/0.4277, allocations: 2.869 MB / 0.4936 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4277, allocations: 7.938 kB / 0.4936 GB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009439/0.4286, allocations: 0.623 MB / 0.4942 GB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.4288, allocations: 112.7 kB / 0.4943 GB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.467e-05/0.4288, allocations: 11.94 kB / 0.4944 GB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000329/0.4292, allocations: 39.97 kB / 0.4944 GB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/0.4292, allocations: 19.97 kB / 0.4944 GB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.4293, allocations: 12 kB / 0.4944 GB, free: 6.602 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003325/0.4296, allocations: 271.2 kB / 0.4947 GB, free: 6.336 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4296, allocations: 0 / 0.4947 GB, free: 6.336 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005873/0.4302, allocations: 131.9 kB / 0.4948 GB, free: 6.207 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001346/0.4316, allocations: 1.252 MB / 0.496 GB, free: 4.918 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009262/0.4325, allocations: 0.5166 MB / 0.4965 GB, free: 4.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4325, allocations: 4 kB / 0.4965 GB, free: 4.371 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006147/0.4332, allocations: 400.5 kB / 0.4969 GB, free: 3.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000392/0.4336, allocations: 48.47 kB / 0.497 GB, free: 3.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2207/0.6542, allocations: 4.334 MB / 0.5012 GB, free: 98.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/0.6549, allocations: 0.857 MB / 0.502 GB, free: 97.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002912/0.6552, allocations: 39.48 kB / 0.5021 GB, free: 97.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002711/0.6555, allocations: 173.8 kB / 0.5022 GB, free: 97.74 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6555, allocations: 3.969 kB / 0.5022 GB, free: 97.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06467/0.7202, allocations: 8.04 MB / 0.5101 GB, free: 97.27 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.7204, allocations: 202.9 kB / 0.5103 GB, free: 97.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.314/3.034, allocations: 0 / 0.5103 GB, free: 97.04 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat