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.001111/0.001111, allocations: 99.66 kB / 16.95 MB, free: 6.449 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.001358/0.001358, allocations: 183.6 kB / 17.84 MB, free: 6.004 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.596/1.596, 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.0005072/0.0005073, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 47.58 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01534/0.1209, allocations: 13.28 MB / 341.7 MB, free: 6.648 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01142/0.1324, allocations: 4.761 MB / 346.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003669/0.1361, allocations: 79.62 kB / 346.6 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003355/0.1395, allocations: 0.8078 MB / 347.4 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004032/0.1435, allocations: 1.026 MB / 348.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002153/0.1457, allocations: 0.6197 MB / 349 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005525/0.1513, allocations: 3.507 MB / 352.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004398/0.1557, allocations: 2.271 MB / 354.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/0.1591, allocations: 1.206 MB / 356 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003829/0.1629, allocations: 1.576 MB / 357.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.1641, allocations: 192 kB / 357.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00266/0.1667, allocations: 399.7 kB / 358.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.1682, allocations: 0.7941 MB / 359 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00193/0.1701, allocations: 0.6953 MB / 359.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007036/0.1772, allocations: 5.06 MB / 364.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1772, allocations: 0 / 364.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1772, allocations: 0 / 364.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002315/0.1775, allocations: 0 / 364.7 MB, free: 15.55 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01007/0.1875, allocations: 3.61 MB / 368.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.1876, allocations: 12.03 kB / 368.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001013/0.1886, allocations: 459 kB / 368.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00267/0.1913, allocations: 0.6164 MB / 369.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003751/0.1951, allocations: 2.035 MB / 371.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.1953, allocations: 242.3 kB / 371.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004291/0.1957, allocations: 311.9 kB / 372 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006948/0.2027, allocations: 4.019 MB / 376 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.278e-05/0.2028, allocations: 7.906 kB / 376 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000264/0.2031, allocations: 131.9 kB / 376.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.2032, allocations: 146.2 kB / 376.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006019/0.2093, allocations: 3.358 MB / 379.6 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.256/0.4653, allocations: 13.38 MB / 393 MB, free: 41.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004091/0.4695, allocations: 3.959 MB / 397 MB, free: 37.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001645/0.4711, allocations: 1.002 MB / 398 MB, free: 37.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004038/0.4752, allocations: 2.663 MB / 400.6 MB, free: 35.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.4752, allocations: 44.88 kB / 400.7 MB, free: 35.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 3.276e-06/0.4752, allocations: 7.938 kB / 400.7 MB, free: 35.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.0109/0.4861, allocations: 5.982 MB / 406.7 MB, free: 31.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.4862, allocations: 66.81 kB / 406.7 MB, free: 31.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.4887, allocations: 1.886 MB / 408.6 MB, free: 30.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.214e-05/0.4888, allocations: 53.42 kB / 408.7 MB, free: 30.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006964/0.4895, allocations: 1.495 MB / 410.2 MB, free: 29.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003429/0.4899, allocations: 494.4 kB / 410.7 MB, free: 28.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.35e-05/0.49, allocations: 35.12 kB / 410.7 MB, free: 28.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.723e-05/0.4901, allocations: 376.2 kB / 411.1 MB, free: 28.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.4911, allocations: 0.7623 MB / 411.8 MB, free: 28.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.4924, allocations: 1.379 MB / 413.2 MB, free: 26.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.4936, allocations: 1.004 MB / 414.2 MB, free: 26.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.4937, allocations: 8 kB / 414.2 MB, free: 26.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003308/0.497, allocations: 2.466 MB / 416.7 MB, free: 23.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.497, allocations: 12 kB / 416.7 MB, free: 23.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.497, allocations: 20 kB / 416.7 MB, free: 23.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003085/0.4974, allocations: 118.5 kB / 416.8 MB, free: 23.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001562/0.4989, allocations: 495.5 kB / 417.3 MB, free: 22.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00074/0.4997, allocations: 1.319 MB / 418.6 MB, free: 21.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.5011, allocations: 107.8 kB / 418.7 MB, free: 21.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.5012, allocations: 83.98 kB / 418.8 MB, free: 21.28 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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.001595/0.5028, allocations: 0.9852 MB / 419.8 MB, free: 20.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003433/0.5032, allocations: 205.4 kB / 420 MB, free: 20.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.506, allocations: 1.961 MB / 422 MB, free: 18.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.506, allocations: 12 kB / 422 MB, free: 18.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.506, allocations: 11.98 kB / 422 MB, free: 18.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.506, allocations: 11.94 kB / 422 MB, free: 18.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006825/0.5129, allocations: 4.98 MB / 427 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.5129, allocations: 4.25 kB / 427 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.5142, allocations: 319.5 kB / 427.3 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002508/0.5144, allocations: 94.53 kB / 427.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.531e-05/0.5145, allocations: 31.94 kB / 427.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006471/0.5152, allocations: 1.276 MB / 428.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5152, allocations: 4 kB / 428.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003684/0.5189, allocations: 3.073 MB / 431.8 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008931/0.5198, allocations: 466.4 kB / 432.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002413/0.52, allocations: 24 kB / 432.2 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008524/0.5209, allocations: 83.97 kB / 432.3 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.521, allocations: 97.12 kB / 432.4 MB, free: 7.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.316e-05/0.5211, allocations: 36 kB / 432.5 MB, free: 7.305 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001711/0.5228, allocations: 1.272 MB / 433.7 MB, free: 6.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5228, allocations: 0 / 433.7 MB, free: 6.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00185/0.5247, allocations: 0.5312 MB / 434.3 MB, free: 5.48 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 (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): 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.003964/0.5287, allocations: 3.68 MB / 437.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003207/0.5319, allocations: 2.206 MB / 440.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.5319, allocations: 0 / 440.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.5336, allocations: 1.177 MB / 441.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003054/0.5366, allocations: 0.4886 MB / 441.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03217/0.5688, allocations: 16.78 MB / 458.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002031/0.5709, allocations: 2.263 MB / 460.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001774/0.5727, allocations: 0.5092 MB / 461.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/0.5742, allocations: 1.179 MB / 462.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5742, allocations: 0 / 462.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08019/0.6544, allocations: 46.25 MB / 0.4969 GB, free: 9.492 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.6546, allocations: 245.8 kB / 0.4971 GB, free: 9.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.75/3.405, allocations: 4 kB / 0.4971 GB, free: 9.238 MB / 398.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