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.00115/0.00115, allocations: 121.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 67.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3167, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04774/0.3644, allocations: 41.81 MB / 450.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02875/0.3932, allocations: 11.21 MB / 461.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01133/0.4046, allocations: 315 kB / 462.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02289/0.4276, allocations: 8.774 MB / 470.9 MB, free: 3.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01507/0.4427, allocations: 3.557 MB / 474.5 MB, free: 15.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009018/0.4517, allocations: 2.449 MB / 476.9 MB, free: 13.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01936/0.4711, allocations: 13.42 MB / 490.3 MB, free: 15.67 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04658/0.5177, allocations: 25.63 MB / 0.5039 GB, free: 5.895 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01279/0.5306, allocations: 6.989 MB / 0.5107 GB, free: 14.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01607/0.5467, allocations: 8.035 MB / 0.5185 GB, free: 6.824 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008815/0.5556, allocations: 1.992 MB / 0.5205 GB, free: 4.832 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01165/0.5673, allocations: 2.398 MB / 0.5228 GB, free: 2.434 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01038/0.5777, allocations: 4.037 MB / 0.5268 GB, free: 14.38 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01756/0.5953, allocations: 7.774 MB / 0.5344 GB, free: 6.578 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5587/1.154, allocations: 26.48 MB / 0.5602 GB, free: 54.68 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/1.154, allocations: 0 / 0.5602 GB, free: 54.68 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/1.154, allocations: 0 / 0.5602 GB, free: 54.68 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001082/1.155, allocations: 3.781 kB / 0.5602 GB, free: 54.68 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.06169/1.217, allocations: 15.48 MB / 0.5753 GB, free: 47.95 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.022e-05/1.217, allocations: 9.656 kB / 0.5754 GB, free: 47.95 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01104/1.228, allocations: 1.752 MB / 0.5771 GB, free: 47.52 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03552/1.264, allocations: 6.228 MB / 0.5831 GB, free: 45.08 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01966/1.283, allocations: 8.286 MB / 0.5912 GB, free: 39.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000974/1.284, allocations: 0.9233 MB / 0.5921 GB, free: 39.53 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006547/1.291, allocations: 1.227 MB / 0.5933 GB, free: 39.12 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05723/1.348, allocations: 19.02 MB / 0.6119 GB, free: 20.48 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008337/1.349, allocations: 19.81 kB / 0.6119 GB, free: 20.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006622/1.356, allocations: 0.5067 MB / 0.6124 GB, free: 19.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006672/1.356, allocations: 0.6582 MB / 0.6131 GB, free: 19.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04153/1.398, allocations: 17.03 MB / 0.6297 GB, free: 2.266 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.135/1.533, allocations: 60.66 MB / 0.6889 GB, free: 5.004 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03178/1.565, allocations: 33.48 MB / 0.7216 GB, free: 15.64 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008334/1.573, allocations: 3.816 MB / 0.7254 GB, free: 11.81 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02346/1.597, allocations: 9.07 MB / 0.7342 GB, free: 2.758 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.324e-05/1.597, allocations: 73.41 kB / 0.7343 GB, free: 2.676 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 1.006e-05/1.597, allocations: 0 / 0.7343 GB, free: 2.676 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.04755/1.644, allocations: 17.76 MB / 0.7516 GB, free: 0.8477 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.648e-05/1.645, allocations: 102.2 kB / 0.7517 GB, free: 0.7383 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.302/1.947, allocations: 5.252 MB / 0.7569 GB, free: 217.8 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009051/1.948, allocations: 88.39 kB / 0.7569 GB, free: 217.8 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003724/1.951, allocations: 5.632 MB / 0.7624 GB, free: 215.9 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001675/1.953, allocations: 1.396 MB / 0.7638 GB, free: 214.9 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003062/1.956, allocations: 1.359 MB / 0.7651 GB, free: 214.3 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.167e-05/1.956, allocations: 304.9 kB / 0.7654 GB, free: 214 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004957/1.961, allocations: 2.969 MB / 0.7683 GB, free: 212.9 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006965/1.968, allocations: 6.014 MB / 0.7742 GB, free: 207.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/1.979, allocations: 9.666 MB / 0.7836 GB, free: 200.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/1.98, allocations: 30.66 kB / 0.7837 GB, free: 200.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02033/2, allocations: 10.09 MB / 0.7935 GB, free: 196.2 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001632/2, allocations: 51.62 kB / 0.7936 GB, free: 196.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003247/2.001, allocations: 107.9 kB / 0.7937 GB, free: 196 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003376/2.004, allocations: 0.9417 MB / 0.7946 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006833/2.011, allocations: 1.62 MB / 0.7962 GB, free: 193.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/2.023, allocations: 10.2 MB / 0.8061 GB, free: 184.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007174/2.03, allocations: 415 kB / 0.8065 GB, free: 183.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0018/2.032, allocations: 363.3 kB / 0.8069 GB, free: 183.6 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.01168/2.043, allocations: 4.304 MB / 0.8111 GB, free: 179.8 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002254/2.046, allocations: 0.5513 MB / 0.8116 GB, free: 179.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01445/2.06, allocations: 6.659 MB / 0.8181 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-05/2.06, allocations: 40 kB / 0.8182 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/2.06, allocations: 11.94 kB / 0.8182 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.468e-05/2.06, allocations: 27.48 kB / 0.8182 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03752/2.098, allocations: 16.23 MB / 0.834 GB, free: 158.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.551e-05/2.098, allocations: 4 kB / 0.834 GB, free: 158.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003515/2.101, allocations: 0.7806 MB / 0.8348 GB, free: 158 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00225/2.104, allocations: 0.7879 MB / 0.8356 GB, free: 157.2 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007416/2.104, allocations: 87.97 kB / 0.8357 GB, free: 157.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00899/2.113, allocations: 9.339 MB / 0.8448 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/2.114, allocations: 7.938 kB / 0.8448 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01544/2.129, allocations: 9.8 MB / 0.8544 GB, free: 137.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004924/2.134, allocations: 1.092 MB / 0.8554 GB, free: 136.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001874/2.136, allocations: 87.83 kB / 0.8555 GB, free: 136.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003809/2.14, allocations: 219.8 kB / 0.8557 GB, free: 136 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/2.141, allocations: 282.8 kB / 0.856 GB, free: 135.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004811/2.141, allocations: 112 kB / 0.8561 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007281/2.149, allocations: 3.507 MB / 0.8595 GB, free: 132.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 5.41e-07/2.149, allocations: 0 / 0.8595 GB, free: 132.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01084/2.159, allocations: 1.944 MB / 0.8614 GB, free: 130.2 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.01827/2.178, allocations: 10.54 MB / 0.8717 GB, free: 119.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0133/2.191, allocations: 7.844 MB / 0.8794 GB, free: 111.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/2.191, allocations: 4 kB / 0.8794 GB, free: 111.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006359/2.198, allocations: 3.63 MB / 0.8829 GB, free: 107.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01029/2.208, allocations: 1.413 MB / 0.8843 GB, free: 106.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1453/2.353, allocations: 67.09 MB / 0.9498 GB, free: 35.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01842/2.372, allocations: 7.424 MB / 0.9571 GB, free: 28.04 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.008221/2.38, allocations: 2.198 MB / 0.9592 GB, free: 25.83 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3193/2.699, allocations: 4.516 MB / 0.9636 GB, free: 217.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.513e-06/2.699, allocations: 0 / 0.9636 GB, free: 217.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2327/2.932, allocations: 153.9 MB / 1.114 GB, free: 88.45 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.16/25.09, allocations: 16.78 kB / 1.114 GB, free: 88.43 MB / 0.5763 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