Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001286/0.001286, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001402/0.001402, allocations: 187.7 kB / 23.7 MB, free: 4.191 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.412/1.412, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 51.92 kB / 370.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2185, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01778/0.2363, allocations: 13.25 MB / 435.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009817/0.2461, allocations: 4.827 MB / 440.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002383/0.2485, allocations: 127.2 kB / 440.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00297/0.2515, allocations: 1.052 MB / 441.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003892/0.2554, allocations: 1.305 MB / 443.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002025/0.2574, allocations: 0.8713 MB / 444 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004466/0.2619, allocations: 3.604 MB / 447.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002773/0.2646, allocations: 1.835 MB / 449.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002328/0.267, allocations: 1.776 MB / 451.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002829/0.2698, allocations: 1.938 MB / 453.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006663/0.2705, allocations: 480 kB / 453.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.2718, allocations: 0.6677 MB / 454.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0011/0.2729, allocations: 1.153 MB / 455.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002049/0.2749, allocations: 1.618 MB / 457.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007039/0.2819, allocations: 6.311 MB / 463.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2819, allocations: 0 / 463.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2819, allocations: 0 / 463.4 MB, free: 5.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.335e-05/0.282, allocations: 0 / 463.4 MB, free: 5.363 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01016/0.2922, allocations: 4.26 MB / 467.7 MB, free: 1.043 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.2922, allocations: 12.03 kB / 467.7 MB, free: 1.031 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000634/0.2929, allocations: 447.3 kB / 468.1 MB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002747/0.2956, allocations: 0.6292 MB / 468.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004563/0.3002, allocations: 2.202 MB / 470.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.3004, allocations: 240.5 kB / 471.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004999/0.3009, allocations: 315.9 kB / 471.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007435/0.3083, allocations: 4.114 MB / 475.6 MB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-05/0.3084, allocations: 19.94 kB / 475.6 MB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/0.3087, allocations: 124 kB / 475.7 MB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001732/0.3089, allocations: 150.2 kB / 475.9 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006258/0.3151, allocations: 3.382 MB / 479.3 MB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02008/0.3352, allocations: 11.74 MB / 491 MB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003399/0.3386, allocations: 1.664 MB / 492.7 MB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/0.3402, allocations: 0.8987 MB / 493.6 MB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004462/0.3447, allocations: 2.127 MB / 495.7 MB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/0.3447, allocations: 43.56 kB / 495.7 MB, free: 4.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.076e-06/0.3447, allocations: 0 / 495.7 MB, free: 4.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01174/0.3564, allocations: 5.819 MB / 0.4898 GB, free: 14.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.3565, allocations: 64.72 kB / 0.4899 GB, free: 14.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002853/0.3594, allocations: 1.928 MB / 0.4917 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.3595, allocations: 53.7 kB / 0.4918 GB, free: 12.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.3607, allocations: 1.544 MB / 0.4933 GB, free: 10.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/0.3612, allocations: 0.5074 MB / 0.4938 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005321/0.3617, allocations: 331.4 kB / 0.4941 GB, free: 10.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3618, allocations: 301.1 kB / 0.4944 GB, free: 9.746 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.3632, allocations: 0.7691 MB / 0.4952 GB, free: 8.977 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001891/0.3651, allocations: 1.404 MB / 0.4965 GB, free: 7.293 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/0.3685, allocations: 2.312 MB / 0.4988 GB, free: 4.715 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.3685, allocations: 8 kB / 0.4988 GB, free: 4.707 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004421/0.3729, allocations: 2.486 MB / 0.5012 GB, free: 2.203 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.373, allocations: 12 kB / 0.5012 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/0.373, allocations: 23.94 kB / 0.5013 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003656/0.3734, allocations: 122.5 kB / 0.5014 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/0.3752, allocations: 483.5 kB / 0.5018 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.3764, allocations: 1.295 MB / 0.5031 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.3778, allocations: 116 kB / 0.5032 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/0.3779, allocations: 88.03 kB / 0.5033 GB, free: 15.95 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001671/0.3796, allocations: 0.985 MB / 0.5043 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003815/0.38, allocations: 218.5 kB / 0.5045 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/0.3835, allocations: 1.958 MB / 0.5064 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.3836, allocations: 12 kB / 0.5064 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3836, allocations: 0 / 0.5064 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.3836, allocations: 11.97 kB / 0.5064 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008702/0.3923, allocations: 4.655 MB / 0.5109 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3923, allocations: 0 / 0.5109 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/0.3937, allocations: 307.8 kB / 0.5112 GB, free: 7.691 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003422/0.3941, allocations: 102.5 kB / 0.5113 GB, free: 7.582 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-05/0.3941, allocations: 31.92 kB / 0.5114 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.3953, allocations: 1.264 MB / 0.5126 GB, free: 6.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3953, allocations: 4 kB / 0.5126 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/0.4003, allocations: 3.103 MB / 0.5156 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.4015, allocations: 386.5 kB / 0.516 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002691/0.4018, allocations: 27.94 kB / 0.516 GB, free: 2.602 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009916/0.4028, allocations: 79.91 kB / 0.5161 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.4029, allocations: 97.12 kB / 0.5162 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.852e-05/0.403, allocations: 36 kB / 0.5162 GB, free: 2.395 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002209/0.4052, allocations: 1.293 MB / 0.5175 GB, free: 1.078 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4052, allocations: 4 kB / 0.5175 GB, free: 1.074 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001776/0.407, allocations: 0.5234 MB / 0.518 GB, free: 0.5508 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0057/0.4127, allocations: 3.704 MB / 0.5216 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00378/0.4165, allocations: 1.983 MB / 0.5236 GB, free: 10.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.4165, allocations: 0 / 0.5236 GB, free: 10.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.4182, allocations: 0.954 MB / 0.5245 GB, free: 9.816 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.4207, allocations: 0.518 MB / 0.525 GB, free: 9.305 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03471/0.4554, allocations: 20.09 MB / 0.5446 GB, free: 4.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002141/0.4576, allocations: 1.706 MB / 0.5463 GB, free: 2.664 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001676/0.4593, allocations: 0.5131 MB / 0.5468 GB, free: 2.148 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/0.4609, allocations: 1.179 MB / 0.5479 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4609, allocations: 0 / 0.5479 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2868/0.7477, allocations: 52.78 MB / 0.5995 GB, free: 82.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.58/17.33, allocations: 11.94 kB / 0.5995 GB, free: 82.39 MB / 462.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 24.174383226316422]