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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 105.1 kB / 17.05 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 55.91 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2524, allocations: 49.43 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02102/0.2734, allocations: 15.18 MB / 415.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0113/0.2848, allocations: 5.076 MB / 420.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003075/0.2879, allocations: 99.62 kB / 420.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003979/0.2919, allocations: 1.072 MB / 421.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004278/0.2964, allocations: 1.261 MB / 422.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002368/0.2987, allocations: 0.8936 MB / 423.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00504/0.3038, allocations: 3.608 MB / 427.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005359/0.3092, allocations: 3.31 MB / 430.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003031/0.3122, allocations: 1.737 MB / 432.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003812/0.316, allocations: 2.051 MB / 434.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00145/0.3175, allocations: 483.9 kB / 435 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002337/0.3199, allocations: 0.6872 MB / 435.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001803/0.3217, allocations: 1.138 MB / 436.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004019/0.3257, allocations: 2.042 MB / 438.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008496/0.3342, allocations: 6.266 MB / 445.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.3343, allocations: 0 / 445.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3343, allocations: 0 / 445.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002658/0.3346, allocations: 0 / 445.1 MB, free: 11.71 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.01429/0.3489, allocations: 4.246 MB / 449.4 MB, free: 7.391 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.3489, allocations: 15.89 kB / 449.4 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001439/0.3504, allocations: 451.3 kB / 449.8 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00374/0.3541, allocations: 0.6172 MB / 450.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005679/0.3598, allocations: 2.276 MB / 452.7 MB, free: 3.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002539/0.3601, allocations: 234.7 kB / 453 MB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009441/0.3611, allocations: 311.8 kB / 453.3 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.3712, allocations: 4.047 MB / 457.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.3713, allocations: 3.984 kB / 457.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006624/0.372, allocations: 132 kB / 457.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001816/0.3722, allocations: 154.1 kB / 457.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007682/0.3799, allocations: 3.39 MB / 461 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02447/0.4044, allocations: 13.14 MB / 474.1 MB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004611/0.4091, allocations: 3.973 MB / 478.1 MB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.4107, allocations: 0.9801 MB / 479.1 MB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005135/0.4159, allocations: 2.657 MB / 481.7 MB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.4159, allocations: 43.56 kB / 481.8 MB, free: 5.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.076e-06/0.416, allocations: 0 / 481.8 MB, free: 5.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01236/0.4283, allocations: 5.999 MB / 487.8 MB, free: 15.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.4284, allocations: 68.72 kB / 487.8 MB, free: 15.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/0.4319, allocations: 1.893 MB / 489.7 MB, free: 13.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.432, allocations: 53.7 kB / 489.8 MB, free: 13.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.4332, allocations: 1.497 MB / 491.3 MB, free: 12.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004125/0.4336, allocations: 488.9 kB / 491.8 MB, free: 11.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005569/0.4342, allocations: 331.2 kB / 492.1 MB, free: 11.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.4343, allocations: 309.1 kB / 492.4 MB, free: 11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.4356, allocations: 0.7652 MB / 493.2 MB, free: 10.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/0.4374, allocations: 1.379 MB / 494.5 MB, free: 8.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003124/0.4405, allocations: 2.312 MB / 496.8 MB, free: 6.012 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.117e-05/0.4406, allocations: 8 kB / 496.9 MB, free: 6.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004296/0.4449, allocations: 2.47 MB / 499.3 MB, free: 3.516 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/0.4449, allocations: 16 kB / 499.3 MB, free: 3.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.433e-05/0.4449, allocations: 23.94 kB / 499.4 MB, free: 3.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000387/0.4453, allocations: 122.5 kB / 499.5 MB, free: 3.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001748/0.4471, allocations: 483.2 kB / 500 MB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.4483, allocations: 1.402 MB / 0.4896 GB, free: 1.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.4498, allocations: 111.8 kB / 0.4897 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.45, allocations: 83.98 kB / 0.4898 GB, free: 1.141 MB / 414.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.001666/0.4517, allocations: 0.989 MB / 0.4908 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004818/0.4522, allocations: 201.5 kB / 0.491 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/0.4556, allocations: 1.961 MB / 0.4929 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.4556, allocations: 12 kB / 0.4929 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.4556, allocations: 0 / 0.4929 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.4557, allocations: 11.97 kB / 0.4929 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008895/0.4646, allocations: 4.991 MB / 0.4978 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.4646, allocations: 8.25 kB / 0.4978 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.4659, allocations: 303.5 kB / 0.4981 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003013/0.4663, allocations: 94.52 kB / 0.4982 GB, free: 8.43 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.4664, allocations: 28 kB / 0.4982 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009824/0.4674, allocations: 1.382 MB / 0.4995 GB, free: 6.879 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.364e-05/0.4674, allocations: 8 kB / 0.4995 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004531/0.4719, allocations: 3.082 MB / 0.5025 GB, free: 3.73 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.473, allocations: 462.5 kB / 0.503 GB, free: 3.258 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004162/0.4735, allocations: 24 kB / 0.503 GB, free: 3.234 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.4746, allocations: 83.97 kB / 0.5031 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.4748, allocations: 85.12 kB / 0.5032 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.019e-05/0.4749, allocations: 47.92 kB / 0.5032 GB, free: 3.023 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002317/0.4772, allocations: 1.285 MB / 0.5045 GB, free: 1.715 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4772, allocations: 0 / 0.5045 GB, free: 1.715 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001847/0.4791, allocations: 0.5312 MB / 0.505 GB, free: 1.184 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.004996/0.4841, allocations: 3.707 MB / 0.5086 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003516/0.4876, allocations: 2.216 MB / 0.5108 GB, free: 11.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4877, allocations: 3.938 kB / 0.5108 GB, free: 11.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.4892, allocations: 1.171 MB / 0.5119 GB, free: 9.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/0.4919, allocations: 0.5111 MB / 0.5124 GB, free: 9.402 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03152/0.5234, allocations: 19.96 MB / 0.5319 GB, free: 4.645 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002517/0.526, allocations: 2.263 MB / 0.5341 GB, free: 2.348 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001575/0.5275, allocations: 0.5092 MB / 0.5346 GB, free: 1.836 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/0.5291, allocations: 1.183 MB / 0.5358 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of SimCode: time 1.412e-06/0.5291, allocations: 0 / 0.5358 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2639/0.793, allocations: 50 MB / 0.5846 GB, free: 93.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.16, allocations: 4.844 kB / 0.5846 GB, free: 93.8 MB / 462.1 MB (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 --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) 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) Reference file matches