Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.0009376/0.0009377, allocations: 98.58 kB / 16.94 MB, free: 5.98 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.0008549/0.0008549, allocations: 181.9 kB / 17.82 MB, free: 5.648 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.313/1.313, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004736/0.000474, allocations: 23.36 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09899/0.09947, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.01611/0.1156, allocations: 15.61 MB / 344 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.1274, allocations: 5.527 MB / 349.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003559/0.131, allocations: 95.56 kB / 349.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003321/0.1343, allocations: 0.9986 MB / 350.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005912/0.1403, allocations: 1.632 MB / 352.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002928/0.1432, allocations: 0.7835 MB / 353.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009645/0.1529, allocations: 4.267 MB / 357.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007616/0.1605, allocations: 3.543 MB / 360.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004986/0.1656, allocations: 1.977 MB / 362.9 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005208/0.1708, allocations: 2.436 MB / 365.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001606/0.1724, allocations: 332 kB / 365.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002731/0.1752, allocations: 0.5387 MB / 366.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002296/0.1775, allocations: 1.351 MB / 367.5 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002362/0.1799, allocations: 1.167 MB / 368.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009657/0.1896, allocations: 8.57 MB / 377.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.1896, allocations: 0 / 377.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1896, allocations: 0 / 377.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002781/0.1899, allocations: 0 / 377.2 MB, free: 2.973 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.2047/0.3946, allocations: 5.658 MB / 382.9 MB, free: 44.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.3947, allocations: 8.719 kB / 382.9 MB, free: 44.9 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004313/0.399, allocations: 0.701 MB / 383.6 MB, free: 44.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006554/0.4056, allocations: 1.076 MB / 384.7 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009702/0.4153, allocations: 3.335 MB / 388 MB, free: 42.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005321/0.4159, allocations: 386.8 kB / 388.4 MB, free: 42.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001988/0.4179, allocations: 0.5072 MB / 388.9 MB, free: 42.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01595/0.4338, allocations: 6.882 MB / 395.8 MB, free: 38.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001481/0.434, allocations: 13.42 kB / 395.8 MB, free: 38.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005543/0.4346, allocations: 209.9 kB / 396 MB, free: 38.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002644/0.4349, allocations: 234.5 kB / 396.2 MB, free: 38.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01056/0.4454, allocations: 5.893 MB / 402.1 MB, free: 35.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03293/0.4784, allocations: 21.41 MB / 423.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006209/0.4847, allocations: 8.679 MB / 432.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008777/0.4935, allocations: 5.117 MB / 437.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.4936, allocations: 56.56 kB / 437.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=227): time 4.789e-06/0.4936, allocations: 0 / 437.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=246): time 0.02329/0.5169, allocations: 11.66 MB / 449.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.517, allocations: 77.41 kB / 449.1 MB, free: 3.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004423/0.5214, allocations: 2.903 MB / 452 MB, free: 168 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000429/0.5219, allocations: 69.7 kB / 452.1 MB, free: 92 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001839/0.5238, allocations: 2.29 MB / 454.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/0.5248, allocations: 0.8349 MB / 455.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.525, allocations: 60 kB / 455.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.5252, allocations: 420 kB / 455.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/0.5273, allocations: 1.38 MB / 457.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002493/0.5298, allocations: 2.141 MB / 459.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.5323, allocations: 1.733 MB / 460.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-05/0.5323, allocations: 8 kB / 461 MB, free: 6.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00745/0.5398, allocations: 4.705 MB / 465.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.5399, allocations: 16 kB / 465.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.904e-05/0.5399, allocations: 20 kB / 465.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001753/0.5417, allocations: 0.7579 MB / 466.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/0.5442, allocations: 0.6435 MB / 467.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/0.556, allocations: 13.55 MB / 480.6 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003048/0.5591, allocations: 160.1 kB / 480.8 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003511/0.5595, allocations: 124 kB / 480.9 MB, free: 1.859 MB / 366.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: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00351/0.563, allocations: 1.603 MB / 482.5 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007845/0.5638, allocations: 324.2 kB / 482.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007131/0.571, allocations: 4.281 MB / 487.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.571, allocations: 24 kB / 487.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/0.571, allocations: 8 kB / 487.2 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.523e-05/0.5711, allocations: 11.95 kB / 487.2 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/0.5873, allocations: 9.215 MB / 496.4 MB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/0.5873, allocations: 8.094 kB / 496.4 MB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/0.5889, allocations: 391.5 kB / 496.8 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002282/0.5912, allocations: 0.9232 MB / 497.7 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001726/0.5914, allocations: 63.97 kB / 497.8 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0156/0.607, allocations: 16.74 MB / 0.5024 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.6071, allocations: 4 kB / 0.5024 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.6174, allocations: 6.523 MB / 0.5088 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00217/0.6196, allocations: 0.704 MB / 0.5095 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005175/0.6201, allocations: 59.98 kB / 0.5096 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.6216, allocations: 147.9 kB / 0.5097 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005122/0.6222, allocations: 198 kB / 0.5099 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.6223, allocations: 71.97 kB / 0.51 GB, free: 7.023 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003033/0.6254, allocations: 1.971 MB / 0.5119 GB, free: 5.055 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6254, allocations: 0 / 0.5119 GB, free: 5.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003499/0.6289, allocations: 0.9831 MB / 0.5128 GB, free: 4.074 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 178 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00928/0.6382, allocations: 8.138 MB / 0.5208 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006564/0.6448, allocations: 4.651 MB / 0.5253 GB, free: 6.918 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.6448, allocations: 0 / 0.5253 GB, free: 6.918 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004239/0.649, allocations: 3.097 MB / 0.5284 GB, free: 3.703 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003824/0.6529, allocations: 0.8352 MB / 0.5292 GB, free: 2.867 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2325/0.8855, allocations: 45.73 MB / 0.5738 GB, free: 113.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005668/0.8912, allocations: 3.539 MB / 0.5773 GB, free: 111.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003264/0.8945, allocations: 0.7804 MB / 0.5781 GB, free: 111.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002943/0.8974, allocations: 1.941 MB / 0.5799 GB, free: 110.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.223e-06/0.8974, allocations: 0 / 0.5799 GB, free: 110.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1312/1.029, allocations: 82.82 MB / 0.6608 GB, free: 29.57 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/1.029, allocations: 220.7 kB / 0.661 GB, free: 29.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.556/4.585, allocations: 0 / 0.661 GB, free: 29.33 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat