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.0008669/0.0008669, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008085/0.0008085, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8954/0.8954, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.194e-06/2.194e-06, allocations: 0 / 324.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.04e-05/2.259e-05, allocations: 6.281 kB / 324.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02665/0.02668, allocations: 35.9 MB / 360.5 MB, free: 11.76 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02295/0.04962, allocations: 10.9 MB / 371.4 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008338/0.05796, allocations: 385.9 kB / 371.8 MB, free: 456 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01133/0.06929, allocations: 8.681 MB / 380.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.08082, allocations: 3.742 MB / 384.2 MB, free: 3.977 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005091/0.08591, allocations: 2.423 MB / 386.6 MB, free: 1.555 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01292/0.09883, allocations: 13.99 MB / 400.6 MB, free: 3.508 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01766/0.1165, allocations: 17.44 MB / 418 MB, free: 1.914 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01142/0.1279, allocations: 10.58 MB / 428.6 MB, free: 7.316 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008704/0.1366, allocations: 6.833 MB / 435.4 MB, free: 480 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002757/0.1394, allocations: 1.988 MB / 437.4 MB, free: 14.48 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003331/0.1427, allocations: 2.401 MB / 439.8 MB, free: 12.08 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002204/0.1449, allocations: 4.126 MB / 444 MB, free: 7.941 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005156/0.1501, allocations: 5.216 MB / 449.2 MB, free: 2.715 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3392/0.4893, allocations: 26.82 MB / 476 MB, free: 39.15 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.4893, allocations: 0 / 476 MB, free: 39.15 MB / 410.8 MB Notification: Performance of FrontEnd: time 7.154e-06/0.4893, allocations: 3 kB / 476 MB, free: 39.15 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.00196/0.4912, allocations: 0 / 476 MB, free: 39.15 MB / 410.8 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.03065/0.5219, allocations: 15.55 MB / 491.5 MB, free: 32.21 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.5219, allocations: 14.42 kB / 491.6 MB, free: 32.21 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002795/0.5247, allocations: 1.752 MB / 493.3 MB, free: 31.77 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01533/0.5401, allocations: 6.206 MB / 499.5 MB, free: 29.31 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01252/0.5526, allocations: 8.302 MB / 0.4959 GB, free: 24.64 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004106/0.553, allocations: 0.9301 MB / 0.4968 GB, free: 24.21 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002358/0.5554, allocations: 1.228 MB / 0.498 GB, free: 23.8 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02449/0.5798, allocations: 19.28 MB / 0.5169 GB, free: 5.164 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000192/0.58, allocations: 27.27 kB / 0.5169 GB, free: 5.141 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000858/0.5809, allocations: 0.5043 MB / 0.5174 GB, free: 4.648 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003115/0.5812, allocations: 0.6504 MB / 0.518 GB, free: 3.996 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02031/0.6015, allocations: 17.01 MB / 0.5346 GB, free: 2.977 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06656/0.6681, allocations: 53.92 MB / 0.5873 GB, free: 12.85 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01088/0.679, allocations: 10.4 MB / 0.5974 GB, free: 4.121 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003657/0.6826, allocations: 3.48 MB / 0.6008 GB, free: 0.6289 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.6942, allocations: 7.912 MB / 0.6086 GB, free: 8.824 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/0.6943, allocations: 77.41 kB / 0.6086 GB, free: 8.738 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=361): time 5.901e-06/0.6943, allocations: 3.984 kB / 0.6086 GB, free: 8.734 MB / 0.4949 GB Notification: Performance of matching and sorting (n=403): time 0.02405/0.7183, allocations: 17.57 MB / 0.6258 GB, free: 7.215 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.7184, allocations: 90.58 kB / 0.6259 GB, free: 7.113 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005951/0.7243, allocations: 5.447 MB / 0.6312 GB, free: 1.684 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001894/0.7245, allocations: 89.7 kB / 0.6313 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.1759/0.9004, allocations: 5.794 MB / 0.6369 GB, free: 185.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001443/0.9019, allocations: 1.445 MB / 0.6383 GB, free: 185 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001884/0.9037, allocations: 1.354 MB / 0.6397 GB, free: 184.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 2.816e-05/0.9038, allocations: 305.4 kB / 0.64 GB, free: 184.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003452/0.9072, allocations: 2.977 MB / 0.6429 GB, free: 184.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003445/0.9107, allocations: 6.073 MB / 0.6488 GB, free: 180.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006642/0.9173, allocations: 9.683 MB / 0.6583 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.416e-05/0.9174, allocations: 33.31 kB / 0.6583 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.009782/0.9271, allocations: 10.1 MB / 0.6682 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.507e-05/0.9272, allocations: 50.19 kB / 0.6682 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.017e-05/0.9273, allocations: 104.6 kB / 0.6683 GB, free: 169.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.9286, allocations: 0.9398 MB / 0.6692 GB, free: 169.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002663/0.9312, allocations: 1.63 MB / 0.6708 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006122/0.9374, allocations: 9.769 MB / 0.6804 GB, free: 159.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003282/0.9406, allocations: 424.1 kB / 0.6808 GB, free: 159.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003282/0.941, allocations: 371.5 kB / 0.6811 GB, free: 158.7 MB / 0.5105 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.005167/0.9461, allocations: 4.295 MB / 0.6853 GB, free: 155 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007255/0.9469, allocations: 0.5738 MB / 0.6859 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006154/0.953, allocations: 6.648 MB / 0.6924 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.953, allocations: 40 kB / 0.6924 GB, free: 148.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.953, allocations: 11.84 kB / 0.6924 GB, free: 148.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.008e-05/0.9531, allocations: 19.08 kB / 0.6924 GB, free: 148.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.9686, allocations: 15.5 MB / 0.7076 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.9686, allocations: 4 kB / 0.7076 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/0.9702, allocations: 0.7684 MB / 0.7083 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.9714, allocations: 0.7924 MB / 0.7091 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/0.9716, allocations: 91.97 kB / 0.7092 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005248/0.9768, allocations: 8.915 MB / 0.7179 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.9768, allocations: 7.938 kB / 0.7179 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008853/0.9857, allocations: 9.817 MB / 0.7275 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002642/0.9883, allocations: 1.07 MB / 0.7285 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006449/0.9889, allocations: 76 kB / 0.7286 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/0.991, allocations: 227.7 kB / 0.7288 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005209/0.9915, allocations: 291.3 kB / 0.7291 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/0.9918, allocations: 124 kB / 0.7292 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004375/0.9961, allocations: 3.51 MB / 0.7326 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.1e-07/0.9961, allocations: 0 / 0.7326 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007391/1.004, allocations: 1.945 MB / 0.7345 GB, free: 107.5 MB / 0.5105 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.01215/1.016, allocations: 10.55 MB / 0.7448 GB, free: 96.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009503/1.025, allocations: 7.381 MB / 0.7521 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/1.025, allocations: 0 / 0.7521 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00429/1.029, allocations: 3.244 MB / 0.7552 GB, free: 86.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008159/1.038, allocations: 1.415 MB / 0.7566 GB, free: 84.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08156/1.119, allocations: 67.5 MB / 0.8225 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0042/1.123, allocations: 7.045 MB / 0.8294 GB, free: 6.195 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003324/1.127, allocations: 2.198 MB / 0.8315 GB, free: 3.988 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1454/1.272, allocations: 4.531 MB / 0.836 GB, free: 188.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.082e-06/1.272, allocations: 0 / 0.836 GB, free: 188.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1482/1.42, allocations: 158.9 MB / 0.9911 GB, free: 52.26 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/13.21, allocations: 19.67 kB / 0.9912 GB, free: 52.24 MB / 0.5105 GB " [Timeout remaining time 647] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/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) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 25.11612762697041]