Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 101.5 kB / 21.21 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 188.9 kB / 24.49 MB, free: 3.98 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 51.92 kB / 371.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2649, allocations: 52.19 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01219/0.2771, allocations: 9.594 MB / 433 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006996/0.2841, allocations: 3.419 MB / 436.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.2858, allocations: 83.44 kB / 436.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.2879, allocations: 0.8112 MB / 437.3 MB, free: 424 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002702/0.2906, allocations: 0.9205 MB / 438.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009956/0.2916, allocations: 463.3 kB / 438.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003503/0.2951, allocations: 2.939 MB / 441.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.2972, allocations: 1.56 MB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.2991, allocations: 1.413 MB / 444.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002572/0.3016, allocations: 1.798 MB / 446.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005487/0.3022, allocations: 372 kB / 446.7 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000869/0.303, allocations: 475.8 kB / 447.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001096/0.3041, allocations: 1.095 MB / 448.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001584/0.3057, allocations: 1.342 MB / 449.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004989/0.3107, allocations: 4.928 MB / 454.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3107, allocations: 0 / 454.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3107, allocations: 3.938 kB / 454.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.875e-05/0.3108, allocations: 0 / 454.6 MB, free: 15.02 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006632/0.3174, allocations: 3.394 MB / 458 MB, free: 11.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3175, allocations: 11.97 kB / 458 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.25e-05/0.3176, allocations: 69.22 kB / 458 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004725/0.318, allocations: 370.9 kB / 458.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008044/0.3188, allocations: 354.8 kB / 458.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/0.322, allocations: 1.74 MB / 460.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.3221, allocations: 200.9 kB / 460.7 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003936/0.3225, allocations: 252 kB / 460.9 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005727/0.3283, allocations: 3.355 MB / 464.3 MB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.818e-05/0.3283, allocations: 3.953 kB / 464.3 MB, free: 5.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002373/0.3285, allocations: 111.9 kB / 464.4 MB, free: 4.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.3287, allocations: 124.9 kB / 464.5 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004959/0.3337, allocations: 2.752 MB / 467.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01614/0.3498, allocations: 9.425 MB / 476.7 MB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.3517, allocations: 1.067 MB / 477.8 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.3529, allocations: 0.711 MB / 478.5 MB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002239/0.3531, allocations: 40.97 kB / 478.5 MB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.3531, allocations: 47.56 kB / 478.6 MB, free: 6.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.156e-06/0.3532, allocations: 0 / 478.6 MB, free: 6.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01529/0.3684, allocations: 6.637 MB / 485.2 MB, free: 15.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.3685, allocations: 64.41 kB / 485.3 MB, free: 15.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002969/0.3715, allocations: 1.793 MB / 487.1 MB, free: 13.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001494/0.3716, allocations: 45.7 kB / 487.1 MB, free: 13.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009832/0.3726, allocations: 1.298 MB / 488.4 MB, free: 12.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003996/0.373, allocations: 452.2 kB / 488.8 MB, free: 12.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004763/0.3735, allocations: 299.4 kB / 489.1 MB, free: 11.76 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3736, allocations: 305.1 kB / 489.4 MB, free: 11.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3748, allocations: 0.7769 MB / 490.2 MB, free: 10.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/0.3764, allocations: 1.304 MB / 491.5 MB, free: 9.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/0.3794, allocations: 2.206 MB / 493.7 MB, free: 6.711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.3794, allocations: 8 kB / 493.7 MB, free: 6.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004211/0.3836, allocations: 2.483 MB / 496.2 MB, free: 4.199 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.3836, allocations: 12 kB / 496.2 MB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/0.3837, allocations: 16 kB / 496.2 MB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006437/0.3843, allocations: 239.2 kB / 496.5 MB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.3858, allocations: 419.3 kB / 496.9 MB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/0.3887, allocations: 3.017 MB / 499.9 MB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.3901, allocations: 135.7 kB / 0.4883 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.3902, allocations: 71.98 kB / 0.4884 GB, free: 68 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001389/0.3916, allocations: 0.8156 MB / 0.4892 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003372/0.3919, allocations: 198.8 kB / 0.4894 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003435/0.3953, allocations: 2.039 MB / 0.4913 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.3954, allocations: 12 kB / 0.4914 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3954, allocations: 0 / 0.4914 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.3954, allocations: 11.91 kB / 0.4914 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007515/0.4029, allocations: 4.448 MB / 0.4957 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.4029, allocations: 4 kB / 0.4957 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.404, allocations: 267.6 kB / 0.496 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005554/0.4046, allocations: 207.5 kB / 0.4962 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.856e-05/0.4046, allocations: 27.94 kB / 0.4962 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002707/0.4073, allocations: 3 MB / 0.4991 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.4073, allocations: 4.031 kB / 0.4991 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004769/0.4121, allocations: 3.144 MB / 0.5022 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000943/0.4131, allocations: 354.7 kB / 0.5025 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002809/0.4133, allocations: 27.92 kB / 0.5026 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009463/0.4143, allocations: 96 kB / 0.5027 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.4145, allocations: 84.84 kB / 0.5027 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.298e-05/0.4146, allocations: 35.98 kB / 0.5028 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001924/0.4165, allocations: 1.224 MB / 0.504 GB, free: 15.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4165, allocations: 0 / 0.504 GB, free: 15.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001534/0.418, allocations: 491.9 kB / 0.5044 GB, free: 15.2 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.005139/0.4232, allocations: 3.776 MB / 0.5081 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003612/0.4268, allocations: 2.125 MB / 0.5102 GB, free: 9.191 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.4268, allocations: 448 / 0.5102 GB, free: 9.191 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.4286, allocations: 1.121 MB / 0.5113 GB, free: 8.039 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.4309, allocations: 495.6 kB / 0.5118 GB, free: 7.566 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03207/0.463, allocations: 18.79 MB / 0.5301 GB, free: 4.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/0.4649, allocations: 1.447 MB / 0.5315 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001432/0.4663, allocations: 0.5038 MB / 0.532 GB, free: 2.031 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/0.4678, allocations: 1.011 MB / 0.533 GB, free: 1.02 MB / 446.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4678, allocations: 0 / 0.533 GB, free: 1.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2773/0.7452, allocations: 49.22 MB / 0.5811 GB, free: 102.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/15.55, allocations: 5.906 kB / 0.5811 GB, free: 102.6 MB / 462.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 24.111669130041264]