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.001871/0.001871, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.002346/0.002346, allocations: 213.2 kB / 24.52 MB, free: 3.91 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.455/1.455, allocations: 230.5 MB / 258.2 MB, free: 7.785 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 55.91 kB / 378.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2487, allocations: 53.42 MB / 432 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04392/0.2926, allocations: 35.83 MB / 467.8 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02344/0.316, allocations: 10.85 MB / 478.6 MB, free: 7.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007572/0.3236, allocations: 377.9 kB / 479 MB, free: 7.191 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02036/0.3439, allocations: 8.261 MB / 487.3 MB, free: 14.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01288/0.3568, allocations: 3.678 MB / 491 MB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008143/0.365, allocations: 2.41 MB / 493.4 MB, free: 8.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01981/0.3848, allocations: 13.51 MB / 0.495 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03597/0.4207, allocations: 17.63 MB / 0.5122 GB, free: 9.469 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01297/0.4337, allocations: 7.149 MB / 0.5192 GB, free: 2.301 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01378/0.4475, allocations: 8.117 MB / 0.5271 GB, free: 10.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005761/0.4532, allocations: 1.992 MB / 0.5291 GB, free: 8.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008117/0.4614, allocations: 2.41 MB / 0.5314 GB, free: 5.754 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007525/0.4689, allocations: 4.06 MB / 0.5354 GB, free: 1.684 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2623/0.7312, allocations: 6.072 MB / 0.5413 GB, free: 31.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02923/0.7605, allocations: 26.67 MB / 0.5674 GB, free: 26.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/0.7605, allocations: 0 / 0.5674 GB, free: 26.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7605, allocations: 0 / 0.5674 GB, free: 26.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008661/0.7613, allocations: 0.8125 kB / 0.5674 GB, free: 26.98 MB / 446.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.04828/0.8096, allocations: 15.7 MB / 0.5827 GB, free: 19.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.8097, allocations: 11.25 kB / 0.5827 GB, free: 19.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003579/0.81, allocations: 335.6 kB / 0.583 GB, free: 19.04 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007408/0.8174, allocations: 1.752 MB / 0.5847 GB, free: 17.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03286/0.8503, allocations: 6.2 MB / 0.5908 GB, free: 14.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01732/0.8676, allocations: 8.336 MB / 0.5989 GB, free: 9.824 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007883/0.8684, allocations: 0.926 MB / 0.5998 GB, free: 9.406 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005598/0.874, allocations: 1.23 MB / 0.601 GB, free: 8.453 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05233/0.9263, allocations: 19.28 MB / 0.6199 GB, free: 5.055 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006974/0.927, allocations: 25.91 kB / 0.6199 GB, free: 5.035 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004749/0.9318, allocations: 0.5112 MB / 0.6204 GB, free: 4.535 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007752/0.9326, allocations: 0.6543 MB / 0.621 GB, free: 3.879 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04034/0.9729, allocations: 17.07 MB / 0.6377 GB, free: 2.805 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.11/1.083, allocations: 53.89 MB / 0.6903 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0188/1.102, allocations: 10.39 MB / 0.7005 GB, free: 3.992 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006472/1.108, allocations: 3.472 MB / 0.7039 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01802/1.126, allocations: 7.934 MB / 0.7116 GB, free: 8.672 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.855e-05/1.126, allocations: 72.59 kB / 0.7117 GB, free: 8.594 MB / 0.545 GB Notification: Performance of pre-optimization done (n=361): time 6.272e-06/1.126, allocations: 0 / 0.7117 GB, free: 8.594 MB / 0.545 GB Notification: Performance of matching and sorting (n=403): time 0.04226/1.169, allocations: 17.56 MB / 0.7288 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/1.169, allocations: 98.58 kB / 0.7289 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/1.179, allocations: 5.265 MB / 0.7341 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008992/1.18, allocations: 93.64 kB / 0.7342 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00496/1.185, allocations: 5.816 MB / 0.7398 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00215/1.187, allocations: 1.473 MB / 0.7413 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002759/1.19, allocations: 1.366 MB / 0.7426 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001175/1.19, allocations: 305.1 kB / 0.7429 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004848/1.195, allocations: 2.973 MB / 0.7458 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.255/1.45, allocations: 6.059 MB / 0.7517 GB, free: 200.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01283/1.463, allocations: 9.693 MB / 0.7612 GB, free: 196.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001865/1.463, allocations: 29.41 kB / 0.7612 GB, free: 196.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01723/1.48, allocations: 10.11 MB / 0.7711 GB, free: 194 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.619e-05/1.48, allocations: 46.94 kB / 0.7711 GB, free: 194 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002131/1.481, allocations: 103.6 kB / 0.7712 GB, free: 194 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002328/1.483, allocations: 0.9446 MB / 0.7722 GB, free: 193.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005426/1.488, allocations: 1.63 MB / 0.7737 GB, free: 193.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009688/1.498, allocations: 9.783 MB / 0.7833 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005952/1.504, allocations: 416.6 kB / 0.7837 GB, free: 187 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001311/1.505, allocations: 368.7 kB / 0.784 GB, free: 187 MB / 0.5762 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.007677/1.513, allocations: 4.302 MB / 0.7882 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001468/1.514, allocations: 0.5672 MB / 0.7888 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/1.525, allocations: 6.649 MB / 0.7953 GB, free: 180 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.738e-05/1.525, allocations: 40 kB / 0.7953 GB, free: 179.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/1.525, allocations: 11.94 kB / 0.7953 GB, free: 179.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-05/1.525, allocations: 22.7 kB / 0.7954 GB, free: 179.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02829/1.553, allocations: 15.51 MB / 0.8105 GB, free: 167 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/1.553, allocations: 4 kB / 0.8105 GB, free: 166.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/1.556, allocations: 0.7677 MB / 0.8113 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/1.559, allocations: 0.7923 MB / 0.812 GB, free: 165.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005736/1.559, allocations: 95.69 kB / 0.8121 GB, free: 165.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008513/1.568, allocations: 8.917 MB / 0.8208 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.568, allocations: 4 kB / 0.8208 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/1.582, allocations: 9.826 MB / 0.8304 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003232/1.585, allocations: 1.074 MB / 0.8315 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001375/1.586, allocations: 79.95 kB / 0.8316 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00305/1.589, allocations: 227.7 kB / 0.8318 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006676/1.59, allocations: 290.6 kB / 0.8321 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002773/1.59, allocations: 124 kB / 0.8322 GB, free: 146.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.006182/1.596, allocations: 3.506 MB / 0.8356 GB, free: 142.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/1.596, allocations: 4 kB / 0.8356 GB, free: 142.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009157/1.606, allocations: 1.936 MB / 0.8375 GB, free: 140.7 MB / 0.5762 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.62, allocations: 10.54 MB / 0.8478 GB, free: 130.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01306/1.633, allocations: 7.396 MB / 0.855 GB, free: 122.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/1.633, allocations: 0 / 0.855 GB, free: 122.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00649/1.64, allocations: 3.246 MB / 0.8582 GB, free: 119.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/1.65, allocations: 1.414 MB / 0.8596 GB, free: 118 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1258/1.776, allocations: 67.51 MB / 0.9255 GB, free: 46.53 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0144/1.79, allocations: 7.034 MB / 0.9324 GB, free: 39.45 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00662/1.797, allocations: 2.194 MB / 0.9345 GB, free: 37.25 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008263/1.805, allocations: 4.526 MB / 0.9389 GB, free: 32.72 MB / 0.5762 GB Notification: Performance of SimCode: time 2.254e-06/1.805, allocations: 0 / 0.9389 GB, free: 32.72 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5132/2.318, allocations: 161.9 MB / 1.097 GB, free: 104 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.72/27.03, allocations: 4 kB / 1.097 GB, free: 103.9 MB / 0.5762 GB " [Timeout remaining time 633] (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/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/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 648] Reference file matches [Calling sys.exit(0), Time elapsed: 52.932064844993874]