Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.00156/0.001565, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.139/2.139, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004156/0.0004154, allocations: 11.98 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09747, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.02205/0.1196, allocations: 12.21 MB / 386.9 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2737/0.3933, allocations: 4.859 MB / 391.7 MB, free: 9.324 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003109/0.3965, allocations: 79.47 kB / 391.8 MB, free: 9.324 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004282/0.4008, allocations: 0.9081 MB / 392.7 MB, free: 9.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006665/0.4075, allocations: 1.308 MB / 394 MB, free: 9.309 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00359/0.4112, allocations: 0.6841 MB / 394.7 MB, free: 9.301 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007379/0.4186, allocations: 2.497 MB / 397.2 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005582/0.4242, allocations: 2.277 MB / 399.5 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004104/0.4284, allocations: 1.162 MB / 400.6 MB, free: 8.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004462/0.4329, allocations: 1.451 MB / 402.1 MB, free: 8.457 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001302/0.4343, allocations: 188.5 kB / 402.3 MB, free: 8.457 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002985/0.4373, allocations: 368.4 kB / 402.6 MB, free: 8.453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00198/0.4393, allocations: 0.7594 MB / 403.4 MB, free: 8.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002185/0.4415, allocations: 0.6962 MB / 404.1 MB, free: 8.195 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008637/0.4502, allocations: 5.015 MB / 409.1 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4503, allocations: 1.031 kB / 409.1 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4503, allocations: 4 kB / 409.1 MB, free: 5.832 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002405/0.4505, allocations: 0 / 409.1 MB, free: 5.832 MB / 282.7 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.01472/0.4653, allocations: 3.586 MB / 412.7 MB, free: 3.781 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.4653, allocations: 10.16 kB / 412.7 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00196/0.4673, allocations: 451.2 kB / 413.1 MB, free: 3.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005302/0.4727, allocations: 0.6246 MB / 413.8 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006565/0.4793, allocations: 2.057 MB / 415.8 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003485/0.4797, allocations: 244.4 kB / 416.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001264/0.481, allocations: 315 kB / 416.4 MB, free: 1.594 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.495, allocations: 3.984 MB / 420.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001626/0.4952, allocations: 11.84 kB / 420.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009819/0.4962, allocations: 134.7 kB / 420.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002397/0.4965, allocations: 142.2 kB / 420.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.509, allocations: 3.358 MB / 424 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03828/0.5474, allocations: 13.3 MB / 437.3 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007671/0.5551, allocations: 3.954 MB / 441.2 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008431/0.5636, allocations: 2.663 MB / 443.9 MB, free: 6.457 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/0.5637, allocations: 43.56 kB / 444 MB, free: 6.406 MB / 314.7 MB Notification: Performance of pre-optimization done (n=113): time 7.203e-06/0.5637, allocations: 3.984 kB / 444 MB, free: 6.402 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.02195/0.5857, allocations: 6.067 MB / 450 MB, free: 264 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.5858, allocations: 64.72 kB / 450.1 MB, free: 188 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005354/0.5912, allocations: 1.804 MB / 451.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000339/0.5916, allocations: 45.7 kB / 451.9 MB, free: 14.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001557/0.5932, allocations: 1.451 MB / 453.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007827/0.594, allocations: 0.4897 MB / 453.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.5942, allocations: 40 kB / 453.9 MB, free: 12.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.5944, allocations: 382.8 kB / 454.3 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/0.5967, allocations: 0.773 MB / 455.1 MB, free: 11.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002755/0.5995, allocations: 1.376 MB / 456.4 MB, free: 9.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002782/0.6023, allocations: 1.02 MB / 457.5 MB, free: 8.484 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.925e-05/0.6023, allocations: 8 kB / 457.5 MB, free: 8.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006621/0.6089, allocations: 2.374 MB / 459.8 MB, free: 6.086 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.609, allocations: 15.17 kB / 459.9 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.096e-05/0.6091, allocations: 20 kB / 459.9 MB, free: 6.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005594/0.6097, allocations: 118.5 kB / 460 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003704/0.6134, allocations: 0.4915 MB / 460.5 MB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.6149, allocations: 1.315 MB / 461.8 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/0.6175, allocations: 115.7 kB / 461.9 MB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002644/0.6178, allocations: 87.98 kB / 462 MB, free: 3.789 MB / 330.7 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.002979/0.6208, allocations: 0.9853 MB / 463 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006403/0.6215, allocations: 197.6 kB / 463.2 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005717/0.6272, allocations: 1.997 MB / 465.2 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.061e-05/0.6273, allocations: 16 kB / 465.2 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.6273, allocations: 0 / 465.2 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.061e-05/0.6273, allocations: 7.969 kB / 465.2 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/0.6411, allocations: 5.036 MB / 470.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/0.6412, allocations: 4 kB / 470.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002825/0.644, allocations: 331.8 kB / 470.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005165/0.6446, allocations: 94.52 kB / 470.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002151/0.6448, allocations: 39.16 kB / 470.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001374/0.6462, allocations: 1.275 MB / 472 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.6462, allocations: 11.88 kB / 472 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008417/0.6547, allocations: 3.277 MB / 475.2 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/0.6564, allocations: 450.4 kB / 475.7 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004795/0.6569, allocations: 31.98 kB / 475.7 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/0.6587, allocations: 79.91 kB / 475.8 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/0.659, allocations: 101.1 kB / 475.9 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.6592, allocations: 36 kB / 475.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003044/0.6622, allocations: 1.214 MB / 477.1 MB, free: 4.219 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.6622, allocations: 0 / 477.1 MB, free: 4.219 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003062/0.6653, allocations: 0.5273 MB / 477.7 MB, free: 3.691 MB / 346.7 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.009098/0.6744, allocations: 4.389 MB / 482.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005804/0.6803, allocations: 2.244 MB / 484.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.6804, allocations: 0 / 484.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002865/0.6832, allocations: 1.197 MB / 485.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003951/0.6872, allocations: 478.4 kB / 486 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05674/0.744, allocations: 29.3 MB / 0.5032 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003276/0.7473, allocations: 2.275 MB / 0.5054 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00301/0.7504, allocations: 1.179 MB / 0.5066 GB, free: 9.121 MB / 394.7 MB Notification: Performance of SimCode: time 1.974e-06/0.7504, allocations: 4 kB / 0.5066 GB, free: 9.117 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.952/4.703, allocations: 96.41 MB / 0.6007 GB, free: 78.57 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat