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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001662/0.001662, allocations: 121.8 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001967/0.001967, allocations: 208.9 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 63.89 kB / 373.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.0967, allocations: 53.32 MB / 426.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2287/0.3254, allocations: 41.97 MB / 468.7 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0307/0.3561, allocations: 11.25 MB / 479.9 MB, free: 7.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01193/0.368, allocations: 317.2 kB / 480.2 MB, free: 7.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02373/0.3917, allocations: 8.9 MB / 489.1 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01518/0.4069, allocations: 3.657 MB / 492.8 MB, free: 13.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008523/0.4154, allocations: 2.457 MB / 495.3 MB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02055/0.436, allocations: 13.43 MB / 0.4968 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03755/0.4735, allocations: 19.87 MB / 0.5162 GB, free: 11.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01387/0.4874, allocations: 6.997 MB / 0.523 GB, free: 4.031 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0138/0.5012, allocations: 8.102 MB / 0.5309 GB, free: 11.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005566/0.5068, allocations: 1.992 MB / 0.5329 GB, free: 9.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007705/0.5145, allocations: 2.417 MB / 0.5352 GB, free: 7.492 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007447/0.5219, allocations: 4.052 MB / 0.5392 GB, free: 3.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.014/0.5359, allocations: 7.774 MB / 0.5468 GB, free: 11.62 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03733/0.5732, allocations: 26.55 MB / 0.5727 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.5732, allocations: 0 / 0.5727 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5733, allocations: 4 kB / 0.5727 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007213/0.574, allocations: 0 / 0.5727 GB, free: 0.9883 MB / 478.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.04846/0.6224, allocations: 15.78 MB / 0.5881 GB, free: 1.074 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.6225, allocations: 8.031 kB / 0.5881 GB, free: 1.066 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00669/0.6292, allocations: 1.76 MB / 0.5898 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03538/0.6646, allocations: 6.197 MB / 0.5959 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02289/0.6874, allocations: 8.325 MB / 0.604 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0012/0.6886, allocations: 0.9312 MB / 0.6049 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004949/0.6936, allocations: 1.219 MB / 0.6061 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4121/1.106, allocations: 19.05 MB / 0.6247 GB, free: 140.8 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007635/1.107, allocations: 21.62 kB / 0.6247 GB, free: 140.8 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003981/1.11, allocations: 0.5083 MB / 0.6252 GB, free: 140.8 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001053/1.112, allocations: 0.6552 MB / 0.6259 GB, free: 140.8 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04072/1.152, allocations: 17.07 MB / 0.6425 GB, free: 134.9 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1034/1.256, allocations: 60.83 MB / 0.7019 GB, free: 90.27 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02031/1.276, allocations: 33.06 MB / 0.7342 GB, free: 53.35 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005784/1.282, allocations: 3.489 MB / 0.7376 GB, free: 49.85 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01862/1.3, allocations: 9.137 MB / 0.7466 GB, free: 40.84 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/1.3, allocations: 73.39 kB / 0.7466 GB, free: 40.76 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 6.543e-06/1.3, allocations: 0 / 0.7466 GB, free: 40.76 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.03821/1.339, allocations: 17.94 MB / 0.7642 GB, free: 23.23 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/1.339, allocations: 98.58 kB / 0.7642 GB, free: 23.12 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009576/1.348, allocations: 5.262 MB / 0.7694 GB, free: 17.94 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009126/1.349, allocations: 93.7 kB / 0.7695 GB, free: 17.84 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003058/1.352, allocations: 5.818 MB / 0.7752 GB, free: 12.09 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001626/1.354, allocations: 1.47 MB / 0.7766 GB, free: 10.64 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003451/1.357, allocations: 1.366 MB / 0.7779 GB, free: 9.262 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.167e-05/1.357, allocations: 301.1 kB / 0.7782 GB, free: 8.965 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004369/1.362, allocations: 2.981 MB / 0.7811 GB, free: 5.98 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006351/1.368, allocations: 6.015 MB / 0.787 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01582/1.384, allocations: 9.679 MB / 0.7965 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002039/1.384, allocations: 31.94 kB / 0.7965 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02366/1.408, allocations: 10.11 MB / 0.8064 GB, free: 9.172 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/1.408, allocations: 48 kB / 0.8064 GB, free: 9.125 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002255/1.408, allocations: 104 kB / 0.8065 GB, free: 9.023 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002817/1.411, allocations: 0.9334 MB / 0.8074 GB, free: 8.074 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006874/1.418, allocations: 1.634 MB / 0.809 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/1.432, allocations: 10.22 MB / 0.819 GB, free: 11.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006198/1.438, allocations: 411.4 kB / 0.8194 GB, free: 11.39 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001637/1.44, allocations: 364 kB / 0.8197 GB, free: 11.04 MB / 0.5607 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.01215/1.452, allocations: 4.313 MB / 0.8239 GB, free: 6.711 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002989/1.455, allocations: 0.5706 MB / 0.8245 GB, free: 6.137 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2744/1.73, allocations: 6.635 MB / 0.831 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.108e-05/1.73, allocations: 45.23 kB / 0.831 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.528e-05/1.73, allocations: 12.44 kB / 0.831 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001249/1.73, allocations: 21.19 kB / 0.8311 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03538/1.765, allocations: 16.24 MB / 0.8469 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-05/1.765, allocations: 4.688 kB / 0.8469 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003782/1.769, allocations: 0.7817 MB / 0.8477 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002563/1.772, allocations: 0.7924 MB / 0.8484 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006706/1.772, allocations: 90.62 kB / 0.8485 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/1.782, allocations: 9.34 MB / 0.8577 GB, free: 164.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/1.782, allocations: 9.344 kB / 0.8577 GB, free: 164.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01605/1.798, allocations: 9.828 MB / 0.8673 GB, free: 160.8 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003436/1.802, allocations: 1.128 MB / 0.8684 GB, free: 160.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001348/1.803, allocations: 75.69 kB / 0.8684 GB, free: 160.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002722/1.806, allocations: 222.4 kB / 0.8686 GB, free: 160.3 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005853/1.806, allocations: 287.6 kB / 0.8689 GB, free: 160.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002419/1.807, allocations: 118.8 kB / 0.869 GB, free: 160.2 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005881/1.813, allocations: 3.515 MB / 0.8725 GB, free: 158.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.2e-07/1.813, allocations: 0 / 0.8725 GB, free: 158.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008952/1.822, allocations: 1.939 MB / 0.8744 GB, free: 158.8 MB / 0.5607 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.01449/1.836, allocations: 10.55 MB / 0.8847 GB, free: 154.1 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01087/1.847, allocations: 7.535 MB / 0.892 GB, free: 149.5 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.847, allocations: 0 / 0.892 GB, free: 149.5 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.005246/1.852, allocations: 3.404 MB / 0.8954 GB, free: 146.5 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007464/1.86, allocations: 1.416 MB / 0.8967 GB, free: 145.4 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1002/1.96, allocations: 67.35 MB / 0.9625 GB, free: 76.18 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008263/1.968, allocations: 7.428 MB / 0.9698 GB, free: 68.71 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006368/1.974, allocations: 2.198 MB / 0.9719 GB, free: 66.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006812/1.981, allocations: 4.522 MB / 0.9763 GB, free: 61.98 MB / 0.5607 GB Notification: Performance of SimCode: time 1.503e-06/1.981, allocations: 3.938 kB / 0.9763 GB, free: 61.97 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5769/2.558, allocations: 155.3 MB / 1.128 GB, free: 134.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.41/25.97, allocations: 4.406 kB / 1.128 GB, free: 134.1 MB / 0.5763 GB " [Timeout remaining time 634] (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 --stepSize=0.0001 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 44.90388355078176]