Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",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.001366/0.001366, allocations: 98.31 kB / 16.94 MB, free: 6.441 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.001588/0.001588, allocations: 189.8 kB / 17.83 MB, free: 6.008 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.393/1.393, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004558/0.000456, allocations: 8 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09458/0.09505, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01364/0.1087, allocations: 12.21 MB / 340.6 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009373/0.1181, allocations: 4.876 MB / 345.5 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002441/0.1206, allocations: 79.62 kB / 345.6 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.123, allocations: 0.9133 MB / 346.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003881/0.1269, allocations: 1.301 MB / 347.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.1287, allocations: 0.6821 MB / 348.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004172/0.1329, allocations: 2.496 MB / 351 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002981/0.1359, allocations: 2.267 MB / 353.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.1378, allocations: 1.164 MB / 354.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001774/0.1396, allocations: 1.451 MB / 355.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002931/0.1399, allocations: 188 kB / 356.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009647/0.1409, allocations: 371.7 kB / 356.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007311/0.1416, allocations: 0.7631 MB / 357.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007016/0.1424, allocations: 0.6991 MB / 357.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004594/0.147, allocations: 5.006 MB / 362.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.147, allocations: 0 / 362.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.147, allocations: 3.984 kB / 362.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000113/0.1471, allocations: 0 / 362.9 MB, free: 1.383 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008728/0.1558, allocations: 3.587 MB / 366.5 MB, free: 13.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1559, allocations: 12.02 kB / 366.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009413/0.1569, allocations: 458.9 kB / 366.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002765/0.1596, allocations: 0.6125 MB / 367.6 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004476/0.1641, allocations: 2.062 MB / 369.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002989/0.1645, allocations: 242.3 kB / 369.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008867/0.1654, allocations: 308 kB / 370.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007508/0.1729, allocations: 3.988 MB / 374.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.535e-05/0.173, allocations: 15.89 kB / 374.2 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002779/0.1733, allocations: 127.9 kB / 374.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.1734, allocations: 150.2 kB / 374.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005667/0.1791, allocations: 3.347 MB / 377.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1972/0.3763, allocations: 13.3 MB / 391.1 MB, free: 43.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003595/0.38, allocations: 3.95 MB / 395 MB, free: 39.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0044/0.3844, allocations: 2.65 MB / 397.7 MB, free: 38.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3845, allocations: 44.38 kB / 397.7 MB, free: 38.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=113): time 2.725e-06/0.3845, allocations: 5.094 kB / 397.7 MB, free: 38.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.009689/0.3942, allocations: 6.077 MB / 403.8 MB, free: 34.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.3942, allocations: 68.59 kB / 403.9 MB, free: 34.6 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.3962, allocations: 1.791 MB / 405.7 MB, free: 33.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.017e-05/0.3963, allocations: 51.27 kB / 405.7 MB, free: 33.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007014/0.397, allocations: 1.511 MB / 407.2 MB, free: 32.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.3973, allocations: 0.5042 MB / 407.7 MB, free: 31.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.563e-05/0.3974, allocations: 35.12 kB / 407.8 MB, free: 31.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.425e-05/0.3975, allocations: 388.1 kB / 408.1 MB, free: 31.4 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000939/0.3984, allocations: 0.7798 MB / 408.9 MB, free: 31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.3996, allocations: 1.369 MB / 410.3 MB, free: 29.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.4008, allocations: 1.018 MB / 411.3 MB, free: 29.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.4008, allocations: 3.625 kB / 411.3 MB, free: 29.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.003119/0.4039, allocations: 2.493 MB / 413.8 MB, free: 27.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.404, allocations: 17.36 kB / 413.8 MB, free: 27.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.404, allocations: 20.56 kB / 413.8 MB, free: 27.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/0.4043, allocations: 122.5 kB / 414 MB, free: 27.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.4059, allocations: 0.4914 MB / 414.5 MB, free: 26.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007221/0.4066, allocations: 1.315 MB / 415.8 MB, free: 25.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.4079, allocations: 112.1 kB / 415.9 MB, free: 25.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.408, allocations: 87.98 kB / 416 MB, free: 25.08 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (236): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001484/0.4095, allocations: 0.9851 MB / 416.9 MB, free: 24.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.4097, allocations: 205.4 kB / 417.1 MB, free: 23.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002605/0.4123, allocations: 1.997 MB / 419.1 MB, free: 21.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.4124, allocations: 16 kB / 419.2 MB, free: 21.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4124, allocations: 0 / 419.2 MB, free: 21.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.4124, allocations: 7.969 kB / 419.2 MB, free: 21.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006246/0.4186, allocations: 5.04 MB / 424.2 MB, free: 16.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.4187, allocations: 7.844 kB / 424.2 MB, free: 16.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.4199, allocations: 327.5 kB / 424.5 MB, free: 16.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002477/0.4202, allocations: 98.78 kB / 424.6 MB, free: 16.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-05/0.4202, allocations: 27.98 kB / 424.7 MB, free: 16.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005995/0.4208, allocations: 1.284 MB / 425.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4209, allocations: 11.94 kB / 426 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003614/0.4245, allocations: 3.265 MB / 429.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007909/0.4253, allocations: 454.5 kB / 429.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000203/0.4255, allocations: 32.06 kB / 429.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008103/0.4263, allocations: 79.91 kB / 429.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.4265, allocations: 93.08 kB / 429.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.96e-05/0.4265, allocations: 40 kB / 429.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001462/0.428, allocations: 1.214 MB / 431.1 MB, free: 9.512 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.428, allocations: 4 kB / 431.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001493/0.4295, allocations: 0.5283 MB / 431.6 MB, free: 8.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003745/0.4333, allocations: 4.393 MB / 436 MB, free: 4.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002705/0.436, allocations: 2.235 MB / 438.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.436, allocations: 4 kB / 438.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.4372, allocations: 1.199 MB / 439.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.439, allocations: 480.8 kB / 440 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03596/0.4749, allocations: 29.29 MB / 469.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/0.4771, allocations: 2.318 MB / 471.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001906/0.479, allocations: 0.5169 MB / 472.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/0.4805, allocations: 1.163 MB / 473.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4805, allocations: 0 / 473.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08539/0.5659, allocations: 45.59 MB / 0.5067 GB, free: 212 kB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.5662, allocations: 236.3 kB / 0.5069 GB, free: 15.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.502/3.068, allocations: 0 / 0.5069 GB, free: 15.96 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat