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.001431/0.001431, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.89 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2777, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04007/0.3178, allocations: 41.81 MB / 450.6 MB, free: 7.539 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02489/0.3428, allocations: 11.21 MB / 461.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009183/0.352, allocations: 318.9 kB / 462.1 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01953/0.3716, allocations: 8.778 MB / 470.9 MB, free: 3.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01295/0.3846, allocations: 3.553 MB / 474.5 MB, free: 15.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00745/0.392, allocations: 2.442 MB / 476.9 MB, free: 13.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01732/0.4094, allocations: 13.42 MB / 490.3 MB, free: 15.7 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03562/0.445, allocations: 25.63 MB / 0.5039 GB, free: 5.918 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01071/0.4558, allocations: 6.997 MB / 0.5107 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01238/0.4682, allocations: 8.02 MB / 0.5185 GB, free: 6.855 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004893/0.4732, allocations: 1.996 MB / 0.5205 GB, free: 4.859 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007444/0.4806, allocations: 2.402 MB / 0.5228 GB, free: 2.457 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006235/0.4869, allocations: 4.033 MB / 0.5268 GB, free: 14.41 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0139/0.5008, allocations: 7.778 MB / 0.5344 GB, free: 6.602 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4476/0.9484, allocations: 26.49 MB / 0.5602 GB, free: 54.61 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.9485, allocations: 0 / 0.5602 GB, free: 54.61 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.9485, allocations: 0 / 0.5602 GB, free: 54.61 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008109/0.9493, allocations: 0 / 0.5602 GB, free: 54.61 MB / 462.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.05268/1.002, allocations: 15.47 MB / 0.5753 GB, free: 47.89 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/1.002, allocations: 16.5 kB / 0.5754 GB, free: 47.89 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00773/1.01, allocations: 1.75 MB / 0.5771 GB, free: 47.45 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03316/1.043, allocations: 6.23 MB / 0.5831 GB, free: 45.01 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02083/1.064, allocations: 8.279 MB / 0.5912 GB, free: 39.9 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001045/1.065, allocations: 0.9269 MB / 0.5921 GB, free: 39.48 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006094/1.071, allocations: 1.226 MB / 0.5933 GB, free: 39.07 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04942/1.121, allocations: 19.02 MB / 0.6119 GB, free: 20.38 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007235/1.121, allocations: 29.98 kB / 0.6119 GB, free: 20.36 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005228/1.127, allocations: 0.5058 MB / 0.6124 GB, free: 19.86 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006318/1.127, allocations: 0.6543 MB / 0.6131 GB, free: 19.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03791/1.165, allocations: 17.03 MB / 0.6297 GB, free: 2.168 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1048/1.27, allocations: 60.64 MB / 0.6889 GB, free: 4.914 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0253/1.295, allocations: 33.49 MB / 0.7216 GB, free: 15.54 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006422/1.302, allocations: 3.813 MB / 0.7254 GB, free: 11.71 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0191/1.321, allocations: 9.067 MB / 0.7342 GB, free: 2.664 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/1.321, allocations: 72.91 kB / 0.7343 GB, free: 2.586 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 5.711e-06/1.321, allocations: 0 / 0.7343 GB, free: 2.586 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.03649/1.358, allocations: 17.78 MB / 0.7516 GB, free: 0.7461 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/1.358, allocations: 93.86 kB / 0.7517 GB, free: 0.6445 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2353/1.593, allocations: 5.249 MB / 0.7569 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0006739/1.594, allocations: 91.2 kB / 0.7569 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0024/1.596, allocations: 5.633 MB / 0.7624 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001148/1.597, allocations: 1.396 MB / 0.7638 GB, free: 174.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001767/1.599, allocations: 1.353 MB / 0.7651 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.909e-05/1.599, allocations: 306.2 kB / 0.7654 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003915/1.603, allocations: 2.971 MB / 0.7683 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00482/1.608, allocations: 6.016 MB / 0.7742 GB, free: 167.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009121/1.617, allocations: 9.663 MB / 0.7836 GB, free: 161 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.179e-05/1.617, allocations: 35.22 kB / 0.7837 GB, free: 161 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01337/1.63, allocations: 10.08 MB / 0.7935 GB, free: 156.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.274e-05/1.631, allocations: 48 kB / 0.7936 GB, free: 156.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/1.631, allocations: 103.8 kB / 0.7937 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002292/1.633, allocations: 0.9347 MB / 0.7946 GB, free: 156 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005497/1.639, allocations: 1.632 MB / 0.7962 GB, free: 154.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009355/1.648, allocations: 10.2 MB / 0.8061 GB, free: 145.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005722/1.654, allocations: 416.8 kB / 0.8065 GB, free: 144.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009538/1.655, allocations: 360.7 kB / 0.8069 GB, free: 144.5 MB / 0.5763 GB 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 (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007227/1.662, allocations: 4.307 MB / 0.8111 GB, free: 140.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001278/1.663, allocations: 0.5439 MB / 0.8116 GB, free: 140.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009707/1.673, allocations: 6.674 MB / 0.8181 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.346e-05/1.673, allocations: 40 kB / 0.8182 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/1.673, allocations: 8 kB / 0.8182 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.204e-05/1.673, allocations: 19.92 kB / 0.8182 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03603/1.709, allocations: 16.23 MB / 0.834 GB, free: 118.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-05/1.709, allocations: 4 kB / 0.834 GB, free: 118.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003522/1.713, allocations: 0.7691 MB / 0.8348 GB, free: 117.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00228/1.715, allocations: 0.7915 MB / 0.8356 GB, free: 116.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007622/1.716, allocations: 95.91 kB / 0.8357 GB, free: 116.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008878/1.725, allocations: 9.345 MB / 0.8448 GB, free: 106.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.725, allocations: 4 kB / 0.8448 GB, free: 106.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/1.74, allocations: 9.796 MB / 0.8544 GB, free: 96.83 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003412/1.743, allocations: 1.099 MB / 0.8554 GB, free: 95.71 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002047/1.745, allocations: 83.83 kB / 0.8555 GB, free: 95.62 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003701/1.749, allocations: 227.6 kB / 0.8557 GB, free: 95.41 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007491/1.75, allocations: 278.2 kB / 0.856 GB, free: 95.14 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004124/1.75, allocations: 116 kB / 0.8561 GB, free: 95.02 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007386/1.758, allocations: 3.506 MB / 0.8595 GB, free: 91.54 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4.61e-07/1.758, allocations: 0 / 0.8595 GB, free: 91.54 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009285/1.767, allocations: 1.945 MB / 0.8614 GB, free: 89.6 MB / 0.5763 GB 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 (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01573/1.783, allocations: 10.51 MB / 0.8717 GB, free: 79.04 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01211/1.795, allocations: 7.852 MB / 0.8794 GB, free: 71.41 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/1.795, allocations: 3.469 kB / 0.8794 GB, free: 71.41 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005922/1.801, allocations: 3.636 MB / 0.8829 GB, free: 67.78 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009876/1.811, allocations: 1.414 MB / 0.8843 GB, free: 66.42 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1251/1.936, allocations: 67.08 MB / 0.9498 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01503/1.951, allocations: 7.432 MB / 0.9571 GB, free: 4.34 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.007628/1.959, allocations: 2.194 MB / 0.9592 GB, free: 2.137 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008853/1.967, allocations: 4.521 MB / 0.9636 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of SimCode: time 1.232e-06/1.967, allocations: 0 / 0.9636 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.956/3.923, allocations: 153.9 MB / 1.114 GB, free: 125.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.59/27.52, allocations: 4.828 kB / 1.114 GB, free: 125.5 MB / 0.6075 GB (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/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) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches