Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009986/0.0009989, allocations: 93.03 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.000353, allocations: 4 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1272, allocations: 51.5 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2933/0.4205, allocations: 36.55 MB / 394.9 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03231/0.4529, allocations: 10.38 MB / 405.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01272/0.4657, allocations: 290.4 kB / 405.6 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009229/0.4749, allocations: 1.77 MB / 407.3 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01657/0.4916, allocations: 2.925 MB / 410.2 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008655/0.5002, allocations: 1.592 MB / 411.8 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0255/0.5258, allocations: 14.27 MB / 426.1 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05338/0.5792, allocations: 20.09 MB / 446.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01668/0.596, allocations: 4.948 MB / 451.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01483/0.6109, allocations: 5.837 MB / 457 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005212/0.6161, allocations: 0.7812 MB / 457.8 MB, free: 8.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009284/0.6254, allocations: 1.16 MB / 458.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007987/0.6335, allocations: 2.511 MB / 461.4 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01004/0.6436, allocations: 2.597 MB / 464 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03308/0.6767, allocations: 22.19 MB / 486.2 MB, free: 12.36 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.6768, allocations: 0 / 486.2 MB, free: 12.36 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.6768, allocations: 0 / 486.2 MB, free: 12.36 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008295/0.6776, allocations: 4 kB / 486.2 MB, free: 12.36 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03653/0.7142, allocations: 12.93 MB / 499.2 MB, free: 15.31 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.7142, allocations: 12.03 kB / 499.2 MB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005919/0.7202, allocations: 1.76 MB / 0.4892 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03276/0.7529, allocations: 6.22 MB / 0.4953 GB, free: 7.281 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/0.772, allocations: 7.907 MB / 0.503 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009979/0.773, allocations: 0.9468 MB / 0.5039 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004172/0.7772, allocations: 1.222 MB / 0.5051 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04599/0.8233, allocations: 18.93 MB / 0.5236 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006155/0.8239, allocations: 19.81 kB / 0.5236 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003818/0.8278, allocations: 0.5078 MB / 0.5241 GB, free: 9.566 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007515/0.8285, allocations: 0.6582 MB / 0.5248 GB, free: 8.906 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4017/1.23, allocations: 16.92 MB / 0.5413 GB, free: 120.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1021/1.332, allocations: 61.52 MB / 0.6014 GB, free: 77.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02176/1.354, allocations: 33.45 MB / 0.634 GB, free: 39.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007528/1.362, allocations: 3.836 MB / 0.6378 GB, free: 36.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02349/1.385, allocations: 9.115 MB / 0.6467 GB, free: 26.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.804e-05/1.386, allocations: 69.41 kB / 0.6467 GB, free: 26.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 8.376e-06/1.386, allocations: 0 / 0.6467 GB, free: 26.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.04438/1.43, allocations: 18.61 MB / 0.6649 GB, free: 8.188 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/1.43, allocations: 98.52 kB / 0.665 GB, free: 8.078 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008908/1.439, allocations: 5.226 MB / 0.6701 GB, free: 2.871 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007635/1.44, allocations: 89.7 kB / 0.6702 GB, free: 2.777 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003923/1.444, allocations: 5.615 MB / 0.6757 GB, free: 13.12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001944/1.446, allocations: 1.405 MB / 0.677 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007536/1.446, allocations: 140 kB / 0.6772 GB, free: 11.59 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005724/1.447, allocations: 0.5757 MB / 0.6777 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005704/1.453, allocations: 2.953 MB / 0.6806 GB, free: 8.055 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007664/1.46, allocations: 5.988 MB / 0.6865 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007215/1.468, allocations: 4.277 MB / 0.6906 GB, free: 12.33 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-05/1.468, allocations: 32 kB / 0.6907 GB, free: 12.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01948/1.487, allocations: 10.03 MB / 0.7005 GB, free: 2.203 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001498/1.487, allocations: 48 kB / 0.7005 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/1.488, allocations: 104 kB / 0.7006 GB, free: 2.055 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/1.49, allocations: 0.9524 MB / 0.7015 GB, free: 1.086 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006308/1.496, allocations: 1.634 MB / 0.7031 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/1.509, allocations: 9.505 MB / 0.7124 GB, free: 5.531 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005782/1.515, allocations: 419.2 kB / 0.7128 GB, free: 5.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001247/1.516, allocations: 360 kB / 0.7132 GB, free: 4.77 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009096/1.525, allocations: 4.305 MB / 0.7174 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2303/1.756, allocations: 0.5403 MB / 0.7179 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01378/1.769, allocations: 6.668 MB / 0.7244 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-05/1.77, allocations: 41.66 kB / 0.7245 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.147e-05/1.77, allocations: 12.19 kB / 0.7245 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-05/1.77, allocations: 20.77 kB / 0.7245 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03222/1.802, allocations: 16.23 MB / 0.7403 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/1.802, allocations: 3.812 kB / 0.7403 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003034/1.805, allocations: 0.7745 MB / 0.7411 GB, free: 149.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001954/1.807, allocations: 0.7842 MB / 0.7419 GB, free: 149.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003365/1.807, allocations: 91.3 kB / 0.7419 GB, free: 149.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00851/1.816, allocations: 8.661 MB / 0.7504 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/1.816, allocations: 7.906 kB / 0.7504 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01482/1.831, allocations: 9.754 MB / 0.7599 GB, free: 139.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003234/1.834, allocations: 1.112 MB / 0.761 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001311/1.835, allocations: 73.5 kB / 0.7611 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003192/1.839, allocations: 228.4 kB / 0.7613 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006904/1.839, allocations: 279.9 kB / 0.7616 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003017/1.84, allocations: 120.2 kB / 0.7617 GB, free: 138.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006894/1.846, allocations: 3.464 MB / 0.7651 GB, free: 137.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.22e-07/1.847, allocations: 0 / 0.7651 GB, free: 137.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009274/1.856, allocations: 1.943 MB / 0.767 GB, free: 135.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * 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: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01441/1.87, allocations: 10.49 MB / 0.7772 GB, free: 126.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01043/1.881, allocations: 7.775 MB / 0.7848 GB, free: 119.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/1.881, allocations: 4 kB / 0.7848 GB, free: 119.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005358/1.886, allocations: 3.632 MB / 0.7884 GB, free: 116.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00794/1.894, allocations: 1.344 MB / 0.7897 GB, free: 114.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1164/2.011, allocations: 62.07 MB / 0.8503 GB, free: 49.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01334/2.024, allocations: 7.428 MB / 0.8575 GB, free: 41.62 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007848/2.032, allocations: 2.217 MB / 0.8597 GB, free: 39.39 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006698/2.039, allocations: 4.502 MB / 0.8641 GB, free: 34.89 MB / 494.1 MB Notification: Performance of SimCode: time 1.112e-06/2.039, allocations: 0 / 0.8641 GB, free: 34.89 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4266/2.465, allocations: 149.7 MB / 1.01 GB, free: 58.56 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/2.465, allocations: 276.5 kB / 1.011 GB, free: 58.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.691/8.157, allocations: 4 kB / 1.011 GB, free: 58.2 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat