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.001587/0.001587, allocations: 111.6 kB / 21.22 MB, free: 0.7344 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.001749/0.001749, allocations: 210.9 kB / 24.53 MB, free: 4.07 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.398/1.398, allocations: 230.5 MB / 258.2 MB, free: 8.047 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.001886/0.001886, allocations: 59.91 kB / 378.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2689, allocations: 53.41 MB / 432 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04784/0.3167, allocations: 42.08 MB / 474.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02589/0.3426, allocations: 11.26 MB / 485.4 MB, free: 1.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009147/0.3518, allocations: 381.9 kB / 485.7 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02161/0.3734, allocations: 8.934 MB / 494.7 MB, free: 7.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01367/0.3871, allocations: 3.717 MB / 498.4 MB, free: 4.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008321/0.3954, allocations: 2.504 MB / 0.4892 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02051/0.4159, allocations: 13.52 MB / 0.5024 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03446/0.4503, allocations: 17.63 MB / 0.5196 GB, free: 2.215 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01293/0.4633, allocations: 7.149 MB / 0.5265 GB, free: 11.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01439/0.4777, allocations: 8.121 MB / 0.5345 GB, free: 2.898 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005772/0.4834, allocations: 1.992 MB / 0.5364 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4628/0.9462, allocations: 2.413 MB / 0.5388 GB, free: 30.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006654/0.9529, allocations: 4.062 MB / 0.5427 GB, free: 30.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01656/0.9694, allocations: 7.772 MB / 0.5503 GB, free: 29.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02933/0.9987, allocations: 26.56 MB / 0.5763 GB, free: 21.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.9988, allocations: 0 / 0.5763 GB, free: 21.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.9988, allocations: 3.375 kB / 0.5763 GB, free: 21.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007771/0.9995, allocations: 2.5 kB / 0.5763 GB, free: 21.64 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.04927/1.049, allocations: 15.69 MB / 0.5916 GB, free: 11.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/1.049, allocations: 7.719 kB / 0.5916 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003222/1.049, allocations: 336.5 kB / 0.5919 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00764/1.057, allocations: 1.753 MB / 0.5936 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03376/1.091, allocations: 6.204 MB / 0.5997 GB, free: 7.488 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01799/1.109, allocations: 8.339 MB / 0.6078 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001031/1.11, allocations: 0.9324 MB / 0.6088 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005326/1.115, allocations: 1.227 MB / 0.61 GB, free: 13.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05818/1.173, allocations: 19.05 MB / 0.6286 GB, free: 10.55 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008201/1.174, allocations: 23.89 kB / 0.6286 GB, free: 10.53 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005521/1.179, allocations: 0.5057 MB / 0.6291 GB, free: 10.04 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008565/1.18, allocations: 0.6621 MB / 0.6297 GB, free: 9.371 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04453/1.225, allocations: 17.07 MB / 0.6464 GB, free: 8.301 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1246/1.349, allocations: 58.78 MB / 0.7038 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01982/1.369, allocations: 10.49 MB / 0.714 GB, free: 4.477 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007128/1.376, allocations: 3.476 MB / 0.7174 GB, free: 0.9883 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02168/1.398, allocations: 8.799 MB / 0.726 GB, free: 8.305 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.982e-05/1.398, allocations: 69.41 kB / 0.7261 GB, free: 8.227 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 5.551e-06/1.398, allocations: 4 kB / 0.7261 GB, free: 8.223 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.04699/1.445, allocations: 17.56 MB / 0.7432 GB, free: 6.711 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/1.445, allocations: 90.58 kB / 0.7433 GB, free: 6.609 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01165/1.457, allocations: 5.269 MB / 0.7485 GB, free: 1.363 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009441/1.458, allocations: 89.7 kB / 0.7486 GB, free: 1.27 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2785/1.736, allocations: 5.815 MB / 0.7542 GB, free: 203.6 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002367/1.739, allocations: 1.467 MB / 0.7557 GB, free: 202.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005898/1.745, allocations: 1.37 MB / 0.757 GB, free: 202.6 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 6.661e-05/1.745, allocations: 306.2 kB / 0.7573 GB, free: 202.3 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005892/1.751, allocations: 2.973 MB / 0.7602 GB, free: 202.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007975/1.758, allocations: 6.022 MB / 0.7661 GB, free: 198.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/1.772, allocations: 9.684 MB / 0.7755 GB, free: 191.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001808/1.772, allocations: 28.31 kB / 0.7756 GB, free: 191.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02189/1.794, allocations: 10.11 MB / 0.7854 GB, free: 187.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002005/1.795, allocations: 51.62 kB / 0.7855 GB, free: 187.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002524/1.795, allocations: 100.2 kB / 0.7856 GB, free: 187.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002891/1.798, allocations: 0.9388 MB / 0.7865 GB, free: 186.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006618/1.804, allocations: 1.633 MB / 0.7881 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/1.817, allocations: 9.912 MB / 0.7978 GB, free: 180.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006954/1.824, allocations: 417 kB / 0.7982 GB, free: 179.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001994/1.826, allocations: 366.6 kB / 0.7985 GB, free: 179.8 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.01103/1.837, allocations: 4.303 MB / 0.8027 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002354/1.839, allocations: 0.5743 MB / 0.8033 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01702/1.856, allocations: 6.639 MB / 0.8098 GB, free: 169.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.642e-05/1.856, allocations: 44 kB / 0.8098 GB, free: 169.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-05/1.856, allocations: 8 kB / 0.8098 GB, free: 169.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001256/1.856, allocations: 22.64 kB / 0.8098 GB, free: 169.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04312/1.899, allocations: 16.28 MB / 0.8257 GB, free: 155.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-05/1.899, allocations: 4.5 kB / 0.8257 GB, free: 155.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003691/1.903, allocations: 0.7801 MB / 0.8265 GB, free: 154.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002233/1.905, allocations: 0.7846 MB / 0.8273 GB, free: 153.8 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007663/1.906, allocations: 95.95 kB / 0.8274 GB, free: 153.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009507/1.915, allocations: 9.044 MB / 0.8362 GB, free: 144.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.915, allocations: 7.938 kB / 0.8362 GB, free: 144.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01898/1.934, allocations: 9.823 MB / 0.8458 GB, free: 134.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004395/1.939, allocations: 1.074 MB / 0.8468 GB, free: 133.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002263/1.941, allocations: 68 kB / 0.8469 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004192/1.945, allocations: 227.8 kB / 0.8471 GB, free: 133 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/1.947, allocations: 292.7 kB / 0.8474 GB, free: 132.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007608/1.947, allocations: 124 kB / 0.8475 GB, free: 132.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.008691/1.956, allocations: 3.513 MB / 0.8509 GB, free: 129.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3e-07/1.956, allocations: 4 kB / 0.851 GB, free: 129.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01153/1.968, allocations: 1.941 MB / 0.8528 GB, free: 127.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.02157/1.989, allocations: 10.55 MB / 0.8631 GB, free: 116.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01445/2.004, allocations: 7.384 MB / 0.8704 GB, free: 109.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/2.004, allocations: 4 kB / 0.8704 GB, free: 109.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007572/2.011, allocations: 3.247 MB / 0.8735 GB, free: 105.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01177/2.023, allocations: 1.406 MB / 0.8749 GB, free: 104.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1454/2.168, allocations: 67.53 MB / 0.9409 GB, free: 32.94 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01796/2.186, allocations: 7.432 MB / 0.9481 GB, free: 25.46 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.009013/2.195, allocations: 2.198 MB / 0.9503 GB, free: 23.25 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01063/2.206, allocations: 4.526 MB / 0.9547 GB, free: 18.73 MB / 0.5763 GB Notification: Performance of SimCode: time 2.465e-06/2.206, allocations: 4 kB / 0.9547 GB, free: 18.72 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5245/2.73, allocations: 161.1 MB / 1.112 GB, free: 92.79 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.75/27.48, allocations: 2.875 kB / 1.112 GB, free: 92.79 MB / 0.5763 GB " [Timeout remaining time 632] (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 649] Reference file matches [Calling sys.exit(0), Time elapsed: 52.99474386597285]