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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009452/0.0009452, allocations: 95.55 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 203.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002482/0.0002484, allocations: 4 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1219, allocations: 51.49 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.2577/0.3797, allocations: 13.91 MB / 372.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01277/0.3925, allocations: 5.418 MB / 377.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00376/0.3963, allocations: 90.19 kB / 377.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004258/0.4006, allocations: 0.9682 MB / 378.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007313/0.4079, allocations: 1.485 MB / 380.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003708/0.4116, allocations: 0.7386 MB / 380.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008951/0.4206, allocations: 3.477 MB / 384.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004758/0.4254, allocations: 2.738 MB / 387 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00425/0.4297, allocations: 1.545 MB / 388.6 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004962/0.4347, allocations: 1.873 MB / 390.4 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001563/0.4363, allocations: 250.2 kB / 390.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.4398, allocations: 464 kB / 391.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.4413, allocations: 0.9389 MB / 392.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002685/0.444, allocations: 0.9092 MB / 393 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00948/0.4535, allocations: 6.586 MB / 399.6 MB, free: 448 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4536, allocations: 0 / 399.6 MB, free: 448 kB / 302.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.4536, allocations: 1.438 kB / 399.6 MB, free: 448 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003823/0.454, allocations: 0 / 399.6 MB, free: 448 kB / 302.1 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.01541/0.4694, allocations: 4.617 MB / 404.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.4695, allocations: 11.84 kB / 404.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002136/0.4716, allocations: 0.6084 MB / 404.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006176/0.4778, allocations: 1.03 MB / 405.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007379/0.4852, allocations: 2.779 MB / 408.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003201/0.4856, allocations: 308.1 kB / 408.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.4867, allocations: 399.9 kB / 409.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/0.4974, allocations: 5.174 MB / 414.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.588e-05/0.4975, allocations: 7.938 kB / 414.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003967/0.4979, allocations: 160 kB / 414.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001688/0.4981, allocations: 172 kB / 414.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.5092, allocations: 4.477 MB / 419.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03783/0.5471, allocations: 16.99 MB / 436.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009158/0.5563, allocations: 8.701 MB / 445 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.5667, allocations: 4.801 MB / 449.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.263e-05/0.5668, allocations: 51.88 kB / 449.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 4.849e-06/0.5669, allocations: 0 / 449.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=169): time 0.01586/0.5827, allocations: 6.439 MB / 456.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.5828, allocations: 73.41 kB / 456.4 MB, free: 7.945 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005029/0.5879, allocations: 2.283 MB / 458.6 MB, free: 5.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003662/0.5883, allocations: 53.7 kB / 458.7 MB, free: 5.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001548/0.5898, allocations: 1.837 MB / 460.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008293/0.5907, allocations: 0.5777 MB / 461.1 MB, free: 3.129 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.5909, allocations: 40 kB / 461.1 MB, free: 3.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002682/0.5912, allocations: 386.3 kB / 461.5 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/0.5929, allocations: 0.8841 MB / 462.4 MB, free: 1.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002145/0.5951, allocations: 1.568 MB / 464 MB, free: 15.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001995/0.5971, allocations: 1.146 MB / 465.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.5971, allocations: 12 kB / 465.1 MB, free: 14.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=280) (initialization): time 0.005245/0.6024, allocations: 2.95 MB / 468.1 MB, free: 11.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.6024, allocations: 12 kB / 468.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.6e-05/0.6025, allocations: 24 kB / 468.1 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003406/0.6028, allocations: 129.6 kB / 468.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/0.6049, allocations: 0.554 MB / 468.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/0.6067, allocations: 1.857 MB / 470.7 MB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/0.609, allocations: 128 kB / 470.8 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.6092, allocations: 100 kB / 470.9 MB, free: 8.855 MB / 382.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (274): * Single equations (assignments): 272 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0026/0.6118, allocations: 1.192 MB / 472.1 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006553/0.6124, allocations: 250.5 kB / 472.3 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004748/0.6172, allocations: 2.582 MB / 474.9 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.6172, allocations: 16 kB / 474.9 MB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.6173, allocations: 8.062 kB / 474.9 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.6173, allocations: 7.969 kB / 474.9 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.6281, allocations: 6.017 MB / 480.9 MB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.6282, allocations: 7.938 kB / 481 MB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.6295, allocations: 323.8 kB / 481.3 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009521/0.6305, allocations: 316.9 kB / 481.6 MB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/0.6306, allocations: 47.92 kB / 481.6 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006494/0.6371, allocations: 6.447 MB / 488.1 MB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6372, allocations: 4 kB / 488.1 MB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006439/0.6436, allocations: 3.905 MB / 492 MB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/0.6455, allocations: 0.5095 MB / 492.5 MB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005918/0.6462, allocations: 39.98 kB / 492.5 MB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.6474, allocations: 91.94 kB / 492.6 MB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.6477, allocations: 129.1 kB / 492.7 MB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.6479, allocations: 47.98 kB / 492.8 MB, free: 2.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002874/0.6507, allocations: 1.541 MB / 494.3 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6508, allocations: 0 / 494.3 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003288/0.6541, allocations: 0.6875 MB / 495 MB, free: 15.9 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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%) 5,(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.007616/0.6617, allocations: 5.106 MB / 0.4884 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004455/0.6662, allocations: 2.356 MB / 0.4907 GB, free: 8.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/0.6663, allocations: 0 / 0.4907 GB, free: 8.277 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002609/0.6689, allocations: 1.5 MB / 0.4922 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003407/0.6723, allocations: 0.5648 MB / 0.4927 GB, free: 6.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05203/0.7244, allocations: 35.44 MB / 0.5273 GB, free: 1.098 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2218/0.9462, allocations: 2.746 MB / 0.53 GB, free: 147.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00352/0.9498, allocations: 0.5611 MB / 0.5306 GB, free: 147.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002905/0.9527, allocations: 1.455 MB / 0.532 GB, free: 147.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.683e-06/0.9528, allocations: 0 / 0.532 GB, free: 147.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09162/1.044, allocations: 57.65 MB / 0.5883 GB, free: 107.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/1.045, allocations: 248.6 kB / 0.5885 GB, free: 107 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.076/4.12, allocations: 0 / 0.5885 GB, free: 107 MB / 446.1 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