Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008611/0.0008614, allocations: 94.73 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.741e-05/1.731e-05, allocations: 0 / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1012, allocations: 51.47 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4649, allocations: 104.5 MB / 499.7 MB, free: 4.848 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4652, allocations: 80.3 kB / 499.8 MB, free: 4.809 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006/3.471, allocations: 0.8404 GB / 1.329 GB, free: 33.51 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.345e-06/3.471, allocations: 0 / 1.329 GB, free: 33.51 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001093/3.472, allocations: 385.3 kB / 1.329 GB, free: 33.47 MB / 0.4948 GB 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.0569/3.529, allocations: 15.96 MB / 1.345 GB, free: 29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/3.529, allocations: 12.91 kB / 1.345 GB, free: 29 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03237/3.561, allocations: 6.061 MB / 1.35 GB, free: 28.09 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02517/3.587, allocations: 11.99 MB / 1.362 GB, free: 26.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009491/3.588, allocations: 0.5416 MB / 1.363 GB, free: 26.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005861/3.593, allocations: 0.9582 MB / 1.364 GB, free: 26.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0436/3.637, allocations: 21.29 MB / 1.384 GB, free: 26.65 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07028/3.707, allocations: 25.4 MB / 1.409 GB, free: 22.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001161/3.709, allocations: 23.55 kB / 1.409 GB, free: 22.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007655/3.716, allocations: 16.56 kB / 1.409 GB, free: 22.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002237/3.719, allocations: 1.302 MB / 1.411 GB, free: 22.53 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7124/4.431, allocations: 84.91 MB / 1.493 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03551/4.467, allocations: 35.16 MB / 1.528 GB, free: 31.62 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009587/4.476, allocations: 5.225 MB / 1.533 GB, free: 31.56 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009224/4.477, allocations: 287.7 kB / 1.533 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.547e-05/4.477, allocations: 100.4 kB / 1.533 GB, free: 31.31 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=613): time 9.588e-06/4.477, allocations: 3.094 kB / 1.533 GB, free: 31.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=613): time 0.02448/4.502, allocations: 10.32 MB / 1.543 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/4.502, allocations: 141.2 kB / 1.543 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/4.512, allocations: 5.232 MB / 1.549 GB, free: 30.47 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001063/4.514, allocations: 28.58 kB / 1.549 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006227/4.52, allocations: 7.561 MB / 1.556 GB, free: 26.65 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003079/4.523, allocations: 2.04 MB / 1.558 GB, free: 25.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001205/4.524, allocations: 0 / 1.558 GB, free: 25.34 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0008391/4.525, allocations: 0.7476 MB / 1.559 GB, free: 25.02 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007803/4.533, allocations: 4.751 MB / 1.563 GB, free: 24.99 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01255/4.545, allocations: 9.399 MB / 1.573 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01898/4.564, allocations: 9.038 MB / 1.581 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002296/4.565, allocations: 43.78 kB / 1.581 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1365) (initialization): time 0.03605/4.601, allocations: 16.53 MB / 1.598 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001962/4.601, allocations: 76.69 kB / 1.598 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003618/4.601, allocations: 159.4 kB / 1.598 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003336/4.605, allocations: 1.504 MB / 1.599 GB, free: 18.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008496/4.613, allocations: 2.363 MB / 1.602 GB, free: 18.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/4.628, allocations: 11.7 MB / 1.613 GB, free: 16.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/4.638, allocations: 1.173 MB / 1.614 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002813/4.641, allocations: 0.5346 MB / 1.615 GB, free: 15.89 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1242): * Single equations (assignments): 1221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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%) 98} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00319/4.644, allocations: 0.4991 MB / 1.615 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0202/4.664, allocations: 10.33 MB / 1.625 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00133/4.665, allocations: 0.6122 MB / 1.626 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02382/4.689, allocations: 12.05 MB / 1.638 GB, free: 9.371 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02275/4.712, allocations: 9.727 MB / 1.647 GB, free: 4.48 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.635e-05/4.712, allocations: 16 kB / 1.647 GB, free: 4.465 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.43e-05/4.712, allocations: 30.7 kB / 1.647 GB, free: 4.465 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4706/5.183, allocations: 25.76 MB / 1.672 GB, free: 80.89 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.097e-05/5.183, allocations: 10 kB / 1.672 GB, free: 80.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005196/5.188, allocations: 1.048 MB / 1.673 GB, free: 80.89 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003213/5.191, allocations: 1.145 MB / 1.674 GB, free: 80.88 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001249/5.193, allocations: 47.12 kB / 1.674 GB, free: 80.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01345/5.206, allocations: 10.07 MB / 1.684 GB, free: 79.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/5.206, allocations: 13.75 kB / 1.684 GB, free: 79.55 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03111/5.237, allocations: 17.45 MB / 1.701 GB, free: 77.29 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005543/5.243, allocations: 1.515 MB / 1.703 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003029/5.246, allocations: 13.03 kB / 1.703 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005583/5.252, allocations: 269 kB / 1.703 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001912/5.254, allocations: 403 kB / 1.703 GB, free: 76.85 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001024/5.255, allocations: 174.7 kB / 1.704 GB, free: 76.85 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.009391/5.264, allocations: 3.805 MB / 1.707 GB, free: 76.67 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.31e-07/5.264, allocations: 2.125 kB / 1.707 GB, free: 76.67 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01743/5.281, allocations: 3.777 MB / 1.711 GB, free: 76.12 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 1 (currentSensorL.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (544): * Single equations (assignments): 523 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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,80.6%) 80} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03226/5.314, allocations: 19.65 MB / 1.73 GB, free: 71.75 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01921/5.333, allocations: 11.37 MB / 1.741 GB, free: 71.35 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.45e-05/5.333, allocations: 3.375 kB / 1.741 GB, free: 71.35 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.008081/5.341, allocations: 4.788 MB / 1.746 GB, free: 71.12 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008896/5.35, allocations: 1.189 MB / 1.747 GB, free: 71.11 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07454/5.425, allocations: 30.52 MB / 1.777 GB, free: 66.25 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01949/5.444, allocations: 11.53 MB / 1.788 GB, free: 65.02 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0107/5.455, allocations: 3.952 MB / 1.792 GB, free: 64.75 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008974/5.464, allocations: 5.842 MB / 1.798 GB, free: 61.59 MB / 0.5573 GB Notification: Performance of SimCode: time 1.062e-06/5.464, allocations: 0 / 1.798 GB, free: 61.59 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6885/6.153, allocations: 196.4 MB / 1.99 GB, free: 64.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001645/6.153, allocations: 161 kB / 1.99 GB, free: 64.22 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/12.89, allocations: 0 / 1.99 GB, free: 64.22 MB / 0.5573 GB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat