Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001696/0.001696, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009765/0.0009766, allocations: 90.86 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.87e-05, allocations: 4 kB / 350.7 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1164, allocations: 51.5 MB / 402.2 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3831/0.4996, allocations: 121.4 MB / 0.5113 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.4998, allocations: 96.22 kB / 0.5114 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6676/1.167, allocations: 166.8 MB / 0.6743 GB, free: 59.42 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.168, allocations: 0 / 0.6743 GB, free: 59.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004465/1.168, allocations: 97.75 kB / 0.6744 GB, free: 59.41 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01331/1.181, allocations: 3.947 MB / 0.6782 GB, free: 56.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/1.181, allocations: 14.91 kB / 0.6782 GB, free: 56.86 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00262/1.184, allocations: 0.605 MB / 0.6788 GB, free: 56.44 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006198/1.19, allocations: 0.9655 MB / 0.6798 GB, free: 55.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/1.202, allocations: 3.829 MB / 0.6835 GB, free: 53.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003818/1.202, allocations: 301.3 kB / 0.6838 GB, free: 53.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001731/1.204, allocations: 404.7 kB / 0.6842 GB, free: 53.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01489/1.219, allocations: 5.013 MB / 0.6891 GB, free: 50.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002278/1.219, allocations: 7.938 kB / 0.6891 GB, free: 50.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/1.22, allocations: 166.3 kB / 0.6892 GB, free: 49.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001763/1.22, allocations: 180 kB / 0.6894 GB, free: 49.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009676/1.23, allocations: 4.034 MB / 0.6934 GB, free: 45.62 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03542/1.266, allocations: 17.02 MB / 0.71 GB, free: 28.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006766/1.272, allocations: 8.545 MB / 0.7183 GB, free: 18.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003287/1.276, allocations: 1.815 MB / 0.7201 GB, free: 16.74 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00939/1.285, allocations: 5.653 MB / 0.7256 GB, free: 10.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.947e-05/1.285, allocations: 51.88 kB / 0.7257 GB, free: 10.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 4.969e-06/1.285, allocations: 0 / 0.7257 GB, free: 10.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=154): time 0.008846/1.294, allocations: 4.616 MB / 0.7302 GB, free: 5.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/1.294, allocations: 68.72 kB / 0.7302 GB, free: 5.898 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003989/1.298, allocations: 1.978 MB / 0.7322 GB, free: 3.895 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/1.298, allocations: 49.7 kB / 0.7322 GB, free: 3.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001103/1.3, allocations: 1.864 MB / 0.734 GB, free: 1.949 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004172/1.3, allocations: 0.5314 MB / 0.7346 GB, free: 1.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/1.3, allocations: 48 kB / 0.7346 GB, free: 1.363 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/1.3, allocations: 382 kB / 0.735 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/1.301, allocations: 0.7617 MB / 0.7357 GB, free: 224 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001908/1.303, allocations: 1.438 MB / 0.7371 GB, free: 14.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/1.305, allocations: 1.032 MB / 0.7381 GB, free: 13.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.097e-05/1.305, allocations: 8 kB / 0.7381 GB, free: 13.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=265) (initialization): time 0.005115/1.31, allocations: 2.748 MB / 0.7408 GB, free: 10.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.398e-05/1.31, allocations: 19.98 kB / 0.7408 GB, free: 10.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/1.31, allocations: 20 kB / 0.7409 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004611/1.311, allocations: 181.7 kB / 0.741 GB, free: 10.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/1.313, allocations: 0.5226 MB / 0.7415 GB, free: 9.898 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/1.316, allocations: 2.266 MB / 0.7438 GB, free: 7.496 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002246/1.318, allocations: 115.9 kB / 0.7439 GB, free: 7.383 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/1.318, allocations: 92 kB / 0.7439 GB, free: 7.293 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005176/1.319, allocations: 242.8 kB / 0.7442 GB, free: 7.051 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007316/1.32, allocations: 245 kB / 0.7444 GB, free: 6.809 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004742/1.324, allocations: 2.348 MB / 0.7467 GB, free: 4.398 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/1.324, allocations: 16 kB / 0.7467 GB, free: 4.383 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/1.324, allocations: 4 kB / 0.7467 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/1.324, allocations: 19.92 kB / 0.7467 GB, free: 4.359 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2938/1.618, allocations: 5.662 MB / 0.7523 GB, free: 78.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/1.618, allocations: 2.781 kB / 0.7523 GB, free: 78.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/1.619, allocations: 279.4 kB / 0.7525 GB, free: 78.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008996/1.62, allocations: 361.7 kB / 0.7529 GB, free: 78.18 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/1.621, allocations: 38.89 kB / 0.7529 GB, free: 78.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005812/1.626, allocations: 6.748 MB / 0.7595 GB, free: 74.19 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/1.626, allocations: 3.375 kB / 0.7595 GB, free: 74.19 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005039/1.631, allocations: 3.491 MB / 0.7629 GB, free: 73.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/1.633, allocations: 496.2 kB / 0.7634 GB, free: 73.49 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004936/1.634, allocations: 33.5 kB / 0.7634 GB, free: 73.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/1.635, allocations: 89.67 kB / 0.7635 GB, free: 73.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003242/1.635, allocations: 124 kB / 0.7636 GB, free: 73.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/1.635, allocations: 45.45 kB / 0.7637 GB, free: 73.49 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00254/1.638, allocations: 1.499 MB / 0.7651 GB, free: 73.33 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.638, allocations: 0 / 0.7651 GB, free: 73.33 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003944/1.642, allocations: 0.7343 MB / 0.7659 GB, free: 73.33 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 120 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006356/1.648, allocations: 4.8 MB / 0.7706 GB, free: 71.85 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003192/1.651, allocations: 2.124 MB / 0.7726 GB, free: 71.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/1.651, allocations: 0 / 0.7726 GB, free: 71.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/1.653, allocations: 1.374 MB / 0.774 GB, free: 71.26 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/1.656, allocations: 0.57 MB / 0.7745 GB, free: 71.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01673/1.673, allocations: 6.554 MB / 0.7809 GB, free: 69.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00271/1.676, allocations: 2.749 MB / 0.7836 GB, free: 69.12 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002388/1.678, allocations: 0.536 MB / 0.7841 GB, free: 69.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/1.68, allocations: 1.472 MB / 0.7856 GB, free: 69.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.523e-06/1.68, allocations: 0.9688 kB / 0.7856 GB, free: 69.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/1.798, allocations: 62.43 MB / 0.8465 GB, free: 61.36 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/1.798, allocations: 214.3 kB / 0.8467 GB, free: 61.13 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.791/5.589, allocations: 0 / 0.8467 GB, free: 61.13 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat