Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 96.3 kB / 16.95 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 184.9 kB / 17.84 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004999/0.0004999, allocations: 16.62 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1095, allocations: 47.57 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.01547/0.125, allocations: 14.59 MB / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.1362, allocations: 5.082 MB / 348.1 MB, free: 236 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003465/0.1397, allocations: 87.62 kB / 348.2 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003864/0.1436, allocations: 0.9363 MB / 349.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006282/0.15, allocations: 1.325 MB / 350.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002945/0.1529, allocations: 0.7251 MB / 351.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008148/0.1611, allocations: 4.958 MB / 356.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005612/0.1667, allocations: 2.684 MB / 358.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.1701, allocations: 1.572 MB / 360.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004483/0.1746, allocations: 2.038 MB / 362.4 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001877/0.1765, allocations: 259.9 kB / 362.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003003/0.1796, allocations: 455.8 kB / 363.1 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002268/0.1819, allocations: 0.973 MB / 364.1 MB, free: 132 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003005/0.1849, allocations: 0.9019 MB / 365 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.1952, allocations: 6.572 MB / 371.6 MB, free: 8.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/0.1953, allocations: 4 kB / 371.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.1953, allocations: 4 kB / 371.6 MB, free: 8.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003685/0.1956, allocations: 0 / 371.6 MB, free: 8.621 MB / 318.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.01463/0.2103, allocations: 4.587 MB / 376.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.2104, allocations: 12.02 kB / 376.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002317/0.2127, allocations: 0.6064 MB / 376.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005532/0.2182, allocations: 0.9978 MB / 377.8 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2219/0.4402, allocations: 2.628 MB / 380.4 MB, free: 27.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004189/0.4406, allocations: 312.2 kB / 380.7 MB, free: 27.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/0.4419, allocations: 396 kB / 381.1 MB, free: 27.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/0.4552, allocations: 5.202 MB / 386.3 MB, free: 27.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.781e-05/0.4553, allocations: 3.469 kB / 386.3 MB, free: 27.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004043/0.4558, allocations: 161.2 kB / 386.5 MB, free: 27.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002097/0.456, allocations: 173.3 kB / 386.7 MB, free: 27.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009924/0.4659, allocations: 4.45 MB / 391.1 MB, free: 27.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02749/0.4934, allocations: 16.95 MB / 408.1 MB, free: 19.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005575/0.4991, allocations: 8.424 MB / 416.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00252/0.5016, allocations: 1.721 MB / 418.2 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007651/0.5093, allocations: 5.007 MB / 423.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.5094, allocations: 55.83 kB / 423.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.868e-06/0.5094, allocations: 0 / 423.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=159): time 0.01147/0.5209, allocations: 6.207 MB / 429.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.521, allocations: 68.72 kB / 429.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004398/0.5254, allocations: 2.294 MB / 431.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.5256, allocations: 49.7 kB / 431.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.527, allocations: 1.851 MB / 433.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005292/0.5275, allocations: 0.5395 MB / 434.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.5277, allocations: 48 kB / 434.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.5279, allocations: 394.2 kB / 434.7 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/0.5295, allocations: 0.8475 MB / 435.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/0.5315, allocations: 1.576 MB / 437.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001916/0.5334, allocations: 1.128 MB / 438.2 MB, free: 5.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.233e-05/0.5334, allocations: 13.22 kB / 438.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004992/0.5384, allocations: 2.896 MB / 441.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.5385, allocations: 16 kB / 441.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-05/0.5386, allocations: 24 kB / 441.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003617/0.5389, allocations: 121.7 kB / 441.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/0.541, allocations: 0.56 MB / 441.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/0.5427, allocations: 1.816 MB / 443.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.5446, allocations: 119.8 kB / 443.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/0.5449, allocations: 99.98 kB / 443.9 MB, free: 15.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * 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 (269): * Single equations (assignments): 267 * 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.002346/0.5472, allocations: 1.198 MB / 445.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006007/0.5478, allocations: 241 kB / 445.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004772/0.5526, allocations: 2.467 MB / 447.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/0.5527, allocations: 23.89 kB / 447.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.569e-05/0.5527, allocations: 4 kB / 447.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.889e-05/0.5527, allocations: 7.969 kB / 447.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.5639, allocations: 5.831 MB / 453.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.5639, allocations: 4 kB / 453.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/0.5652, allocations: 298.6 kB / 454 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000899/0.5662, allocations: 318.9 kB / 454.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.5663, allocations: 39.98 kB / 454.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006664/0.573, allocations: 6.383 MB / 460.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.573, allocations: 7.469 kB / 460.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006063/0.5791, allocations: 3.595 MB / 464.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.5805, allocations: 0.5018 MB / 464.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000662/0.5812, allocations: 36.12 kB / 464.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.5827, allocations: 95.92 kB / 464.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002994/0.583, allocations: 120.6 kB / 465.1 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.5831, allocations: 47.98 kB / 465.1 MB, free: 9.859 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003201/0.5863, allocations: 1.552 MB / 466.7 MB, free: 8.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5863, allocations: 0 / 466.7 MB, free: 8.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003301/0.5897, allocations: 0.6675 MB / 467.3 MB, free: 7.629 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (132): * Single equations (assignments): 129 * 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.00721/0.5969, allocations: 4.225 MB / 471.5 MB, free: 3.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004362/0.6013, allocations: 2.28 MB / 473.8 MB, free: 1.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.6013, allocations: 4 kB / 473.8 MB, free: 1.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002417/0.6038, allocations: 1.453 MB / 475.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003782/0.6076, allocations: 0.5803 MB / 475.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04503/0.6526, allocations: 20.7 MB / 496.6 MB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003129/0.6558, allocations: 2.657 MB / 499.2 MB, free: 6.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002348/0.6582, allocations: 0.5552 MB / 499.8 MB, free: 5.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002131/0.6603, allocations: 1.46 MB / 0.4895 GB, free: 4.273 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6603, allocations: 7.469 kB / 0.4895 GB, free: 4.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2651/0.9254, allocations: 56.95 MB / 0.5451 GB, free: 148.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.9256, allocations: 226.9 kB / 0.5453 GB, free: 148.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.184/4.11, allocations: 1.062 kB / 0.5453 GB, free: 148.5 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat