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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 175.6 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 221.5 MB / 230.3 MB, free: 7.5 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009379/0.0009383, allocations: 99.3 kB / 281.2 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.159e-05/2.152e-05, allocations: 4 kB / 337.1 MB, free: 9.898 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.364/0.4648, allocations: 103.6 MB / 491.2 MB, free: 7.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.4651, allocations: 79.95 kB / 491.3 MB, free: 6.941 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.791/3.256, allocations: 0.7974 GB / 1.277 GB, free: 41.77 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.343e-06/3.256, allocations: 0 / 1.277 GB, free: 41.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0007711/3.257, allocations: 389 kB / 1.278 GB, free: 41.73 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.05522/3.312, allocations: 15.93 MB / 1.293 GB, free: 37.28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/3.312, allocations: 14.48 kB / 1.293 GB, free: 37.28 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03224/3.344, allocations: 6.038 MB / 1.299 GB, free: 36.38 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02813/3.372, allocations: 12 MB / 1.311 GB, free: 35 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001157/3.374, allocations: 0.5438 MB / 1.311 GB, free: 35 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008366/3.382, allocations: 0.963 MB / 1.312 GB, free: 35 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04523/3.427, allocations: 21.28 MB / 1.333 GB, free: 34.93 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06834/3.496, allocations: 25.4 MB / 1.358 GB, free: 31.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008192/3.496, allocations: 22.89 kB / 1.358 GB, free: 31.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00555/3.502, allocations: 11.19 kB / 1.358 GB, free: 31.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001605/3.504, allocations: 1.297 MB / 1.359 GB, free: 31.23 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4769/3.981, allocations: 84.44 MB / 1.442 GB, free: 37.84 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02946/4.01, allocations: 35.15 MB / 1.476 GB, free: 26.66 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008141/4.018, allocations: 5.224 MB / 1.481 GB, free: 26.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007278/4.019, allocations: 212.2 kB / 1.481 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.229e-05/4.019, allocations: 91.5 kB / 1.481 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=613): time 7.705e-06/4.019, allocations: 1.656 kB / 1.481 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=613): time 0.01795/4.037, allocations: 9.702 MB / 1.491 GB, free: 26.18 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.31e-05/4.037, allocations: 141.2 kB / 1.491 GB, free: 26.08 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00889/4.046, allocations: 5.231 MB / 1.496 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001221/4.047, allocations: 25.7 kB / 1.496 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004878/4.052, allocations: 7.561 MB / 1.503 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002886/4.055, allocations: 2.042 MB / 1.505 GB, free: 20.63 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/4.056, allocations: 3.438 kB / 1.505 GB, free: 20.63 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007032/4.057, allocations: 0.753 MB / 1.506 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00683/4.064, allocations: 4.75 MB / 1.511 GB, free: 20.28 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01007/4.074, allocations: 9.389 MB / 1.52 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01416/4.088, allocations: 8.39 MB / 1.528 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002863/4.089, allocations: 46.78 kB / 1.528 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1365) (initialization): time 0.03227/4.121, allocations: 15.87 MB / 1.544 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001831/4.121, allocations: 78.48 kB / 1.544 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003859/4.122, allocations: 161 kB / 1.544 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003751/4.125, allocations: 1.5 MB / 1.545 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009781/4.135, allocations: 2.36 MB / 1.548 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/4.15, allocations: 11.71 MB / 1.559 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009199/4.16, allocations: 1.179 MB / 1.56 GB, free: 11.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002597/4.162, allocations: 0.5325 MB / 1.561 GB, free: 11.22 MB / 0.5261 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.003196/4.165, allocations: 0.4963 MB / 1.561 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01682/4.182, allocations: 9.709 MB / 1.571 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001478/4.184, allocations: 0.6057 MB / 1.571 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01931/4.203, allocations: 11.48 MB / 1.583 GB, free: 7.266 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01613/4.219, allocations: 9.159 MB / 1.591 GB, free: 4.148 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-05/4.219, allocations: 19.44 kB / 1.591 GB, free: 4.148 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001113/4.22, allocations: 28.45 kB / 1.592 GB, free: 4.148 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06127/4.281, allocations: 25.2 MB / 1.616 GB, free: 4.059 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.414e-05/4.281, allocations: 8.969 kB / 1.616 GB, free: 4.051 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005012/4.286, allocations: 1.048 MB / 1.617 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003122/4.289, allocations: 1.142 MB / 1.618 GB, free: 2.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001013/4.29, allocations: 49.03 kB / 1.618 GB, free: 2.285 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4058/4.696, allocations: 10.13 MB / 1.628 GB, free: 74.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/4.696, allocations: 11.59 kB / 1.628 GB, free: 74.88 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02644/4.722, allocations: 16.87 MB / 1.645 GB, free: 72.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004016/4.726, allocations: 1.514 MB / 1.646 GB, free: 72.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001601/4.728, allocations: 13.77 kB / 1.646 GB, free: 72.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003989/4.732, allocations: 271.1 kB / 1.646 GB, free: 72.25 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009109/4.733, allocations: 403.5 kB / 1.647 GB, free: 72.24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004061/4.733, allocations: 181.4 kB / 1.647 GB, free: 72.23 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006529/4.74, allocations: 3.808 MB / 1.651 GB, free: 72.05 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.51e-07/4.74, allocations: 0 / 1.651 GB, free: 72.05 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01306/4.753, allocations: 3.771 MB / 1.654 GB, free: 71.5 MB / 0.5417 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.02458/4.778, allocations: 19.08 MB / 1.673 GB, free: 67.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0164/4.794, allocations: 11.39 MB / 1.684 GB, free: 66.73 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/4.794, allocations: 0 / 1.684 GB, free: 66.73 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006968/4.801, allocations: 4.774 MB / 1.689 GB, free: 66.51 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00752/4.809, allocations: 1.195 MB / 1.69 GB, free: 66.49 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07181/4.881, allocations: 30.4 MB / 1.72 GB, free: 61.65 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01922/4.9, allocations: 11.54 MB / 1.731 GB, free: 60.48 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01116/4.911, allocations: 3.953 MB / 1.735 GB, free: 60.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01108/4.922, allocations: 5.835 MB / 1.741 GB, free: 57.07 MB / 0.5417 GB Notification: Performance of SimCode: time 1.183e-06/4.922, allocations: 0 / 1.741 GB, free: 57.07 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7014/5.624, allocations: 196.5 MB / 1.932 GB, free: 56.63 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/5.624, allocations: 177.2 kB / 1.933 GB, free: 56.44 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.478/12.1, allocations: 1.688 kB / 1.933 GB, free: 56.44 MB / 0.5417 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