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.001731/0.001731, allocations: 111.3 kB / 16.62 MB, free: 6.949 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.002307/0.002307, allocations: 189.8 kB / 17.55 MB, free: 6.047 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.412/1.412, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 42.69 kB / 300.2 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1034, allocations: 49.46 MB / 349.7 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01781/0.1213, allocations: 14.98 MB / 364.7 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01031/0.1316, allocations: 4.999 MB / 369.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003307/0.135, allocations: 91.62 kB / 369.8 MB, free: 468 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2004/0.3354, allocations: 0.9423 MB / 370.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004766/0.3402, allocations: 1.139 MB / 371.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002213/0.3424, allocations: 0.7959 MB / 372.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006365/0.3488, allocations: 3.687 MB / 376.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004253/0.3531, allocations: 3.31 MB / 379.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003059/0.3562, allocations: 1.664 MB / 381.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004233/0.3604, allocations: 2.05 MB / 383.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001502/0.3619, allocations: 478.6 kB / 383.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002564/0.3645, allocations: 0.6881 MB / 384.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001116/0.3656, allocations: 1.145 MB / 385.7 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002963/0.3686, allocations: 2.036 MB / 387.7 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006579/0.3752, allocations: 6.199 MB / 393.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3752, allocations: 0 / 393.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3752, allocations: 0 / 393.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001562/0.3754, allocations: 1.156 kB / 393.9 MB, free: 2.301 MB / 302.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.009322/0.3847, allocations: 4.245 MB / 398.1 MB, free: 15.42 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3848, allocations: 12.86 kB / 398.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000573/0.3854, allocations: 448.2 kB / 398.6 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002691/0.3881, allocations: 0.6256 MB / 399.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003478/0.3916, allocations: 2.187 MB / 401.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.3918, allocations: 245 kB / 401.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004471/0.3922, allocations: 315.9 kB / 402 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006787/0.399, allocations: 4.046 MB / 406 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.86e-05/0.3991, allocations: 3.906 kB / 406 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002773/0.3994, allocations: 131 kB / 406.1 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001449/0.3995, allocations: 146.2 kB / 406.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005561/0.4051, allocations: 3.39 MB / 409.7 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01813/0.4233, allocations: 13.3 MB / 423 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003969/0.4273, allocations: 3.962 MB / 426.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.4289, allocations: 1.003 MB / 427.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004485/0.4334, allocations: 2.651 MB / 430.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.4334, allocations: 47.56 kB / 430.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 5.22e-06/0.4334, allocations: 3.984 kB / 430.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01204/0.4455, allocations: 5.99 MB / 436.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.4456, allocations: 68.66 kB / 436.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003693/0.4493, allocations: 1.889 MB / 438.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.4494, allocations: 49.7 kB / 438.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.4506, allocations: 1.509 MB / 440.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004966/0.4511, allocations: 490.9 kB / 440.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005513/0.4517, allocations: 335.2 kB / 440.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.4518, allocations: 305.1 kB / 441.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4531, allocations: 0.7613 MB / 442 MB, free: 3.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.4547, allocations: 1.377 MB / 443.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003066/0.4578, allocations: 2.32 MB / 445.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.4578, allocations: 4 kB / 445.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004149/0.462, allocations: 2.466 MB / 448.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.462, allocations: 18.66 kB / 448.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.201e-05/0.4621, allocations: 19.98 kB / 448.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003755/0.4625, allocations: 126.9 kB / 448.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/0.4643, allocations: 479.2 kB / 448.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.4655, allocations: 1.421 MB / 450.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.4673, allocations: 111.8 kB / 450.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/0.4675, allocations: 83.98 kB / 450.4 MB, free: 10.49 MB / 366.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.002/0.4695, allocations: 0.9851 MB / 451.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00051/0.47, allocations: 201.5 kB / 451.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.4735, allocations: 1.965 MB / 453.6 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.4735, allocations: 12 kB / 453.6 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.4735, allocations: 4 kB / 453.6 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.4735, allocations: 3.984 kB / 453.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00867/0.4822, allocations: 4.994 MB / 458.6 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.4822, allocations: 4 kB / 458.6 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/0.4836, allocations: 303.5 kB / 458.9 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003023/0.4839, allocations: 98.77 kB / 459 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.4841, allocations: 31.98 kB / 459 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009751/0.485, allocations: 1.371 MB / 460.4 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4851, allocations: 0 / 460.4 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00465/0.4897, allocations: 3.087 MB / 463.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.4908, allocations: 454.5 kB / 463.9 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005407/0.4913, allocations: 28 kB / 463.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.4926, allocations: 79.91 kB / 464 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.4928, allocations: 97.19 kB / 464.1 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.304e-05/0.4929, allocations: 39.98 kB / 464.1 MB, free: 12.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00236/0.4953, allocations: 1.285 MB / 465.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4953, allocations: 0 / 465.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002068/0.4974, allocations: 0.5312 MB / 466 MB, free: 10.59 MB / 382.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.004888/0.5022, allocations: 3.704 MB / 469.7 MB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005746/0.508, allocations: 2.83 MB / 472.5 MB, free: 3.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.508, allocations: 4.188 kB / 472.5 MB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001648/0.5097, allocations: 1.177 MB / 473.7 MB, free: 2.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.5124, allocations: 0.5085 MB / 474.2 MB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04892/0.5613, allocations: 23.66 MB / 497.8 MB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003152/0.5645, allocations: 2.263 MB / 0.4884 GB, free: 6.316 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002052/0.5666, allocations: 0.5092 MB / 0.4889 GB, free: 5.805 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/0.5686, allocations: 1.179 MB / 0.49 GB, free: 4.625 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5686, allocations: 4 kB / 0.49 GB, free: 4.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2794/0.848, allocations: 48.38 MB / 0.5373 GB, free: 155.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/0.8482, allocations: 280.7 kB / 0.5375 GB, free: 154.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/3.844, allocations: 4 kB / 0.5375 GB, free: 154.9 MB / 446.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