Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001277/0.001277, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001208/0.001208, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 224.6 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 47.94 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09949, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.1865/0.286, allocations: 15.12 MB / 389.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008793/0.2949, allocations: 5.118 MB / 394.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002082/0.2971, allocations: 88.12 kB / 395 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002629/0.2997, allocations: 1.062 MB / 396 MB, free: 420 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003619/0.3033, allocations: 1.257 MB / 397.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002081/0.3054, allocations: 0.9031 MB / 398.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005129/0.3106, allocations: 3.618 MB / 401.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003925/0.3145, allocations: 3.259 MB / 405.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003067/0.3176, allocations: 1.719 MB / 406.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002891/0.3205, allocations: 2.054 MB / 408.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006634/0.3212, allocations: 479 kB / 409.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001501/0.3227, allocations: 0.6788 MB / 410 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001167/0.3238, allocations: 1.143 MB / 411.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00237/0.3262, allocations: 2.038 MB / 413.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007016/0.3333, allocations: 6.27 MB / 419.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3333, allocations: 0 / 419.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3333, allocations: 1.375 kB / 419.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001299/0.3334, allocations: 4 kB / 419.5 MB, free: 2.762 MB / 334.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.01037/0.3438, allocations: 4.331 MB / 423.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.3439, allocations: 8.031 kB / 423.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006128/0.3445, allocations: 451.3 kB / 424.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002824/0.3473, allocations: 0.6387 MB / 424.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003631/0.351, allocations: 2.153 MB / 427 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.3512, allocations: 238.8 kB / 427.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004657/0.3516, allocations: 311.9 kB / 427.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00677/0.3584, allocations: 4.043 MB / 431.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.564e-05/0.3585, allocations: 0 / 431.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000304/0.3588, allocations: 132 kB / 431.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.359, allocations: 142.2 kB / 431.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00581/0.3648, allocations: 3.382 MB / 435.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01921/0.384, allocations: 13.2 MB / 448.5 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004692/0.3887, allocations: 3.966 MB / 452.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001676/0.3904, allocations: 0.9878 MB / 453.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004412/0.3949, allocations: 2.65 MB / 456.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.3949, allocations: 51.56 kB / 456.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.504e-06/0.3949, allocations: 0 / 456.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01196/0.4069, allocations: 6.042 MB / 462.2 MB, free: 7.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.407, allocations: 68.72 kB / 462.2 MB, free: 6.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002771/0.4098, allocations: 1.889 MB / 464.1 MB, free: 5.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.376e-05/0.4099, allocations: 49.7 kB / 464.2 MB, free: 4.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.4111, allocations: 1.544 MB / 465.7 MB, free: 3.434 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004418/0.4116, allocations: 0.5074 MB / 466.2 MB, free: 2.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005492/0.4121, allocations: 335.4 kB / 466.5 MB, free: 2.586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4123, allocations: 301.1 kB / 466.8 MB, free: 2.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.4136, allocations: 0.7691 MB / 467.6 MB, free: 1.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001813/0.4154, allocations: 1.379 MB / 469 MB, free: 15.87 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003344/0.4187, allocations: 2.32 MB / 471.3 MB, free: 13.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.4187, allocations: 4 kB / 471.3 MB, free: 13.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004192/0.4229, allocations: 2.478 MB / 473.8 MB, free: 10.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.423, allocations: 16 kB / 473.8 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.232e-05/0.423, allocations: 16 kB / 473.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000378/0.4234, allocations: 134.8 kB / 474 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/0.4252, allocations: 491.2 kB / 474.4 MB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.4266, allocations: 1.41 MB / 475.8 MB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.4282, allocations: 123.9 kB / 476 MB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.4283, allocations: 80 kB / 476 MB, free: 8.383 MB / 398.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.001794/0.4301, allocations: 0.985 MB / 477 MB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003412/0.4305, allocations: 214.6 kB / 477.2 MB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003497/0.434, allocations: 1.958 MB / 479.2 MB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.434, allocations: 12 kB / 479.2 MB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.434, allocations: 8 kB / 479.2 MB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.434, allocations: 11.95 kB / 479.2 MB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008015/0.4421, allocations: 4.979 MB / 484.2 MB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.4421, allocations: 4 kB / 484.2 MB, free: 76 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.4435, allocations: 319.8 kB / 484.5 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003016/0.4438, allocations: 98.52 kB / 484.6 MB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.399e-05/0.4439, allocations: 27.98 kB / 484.6 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.445, allocations: 1.375 MB / 486 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.445, allocations: 8 kB / 486 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004795/0.4498, allocations: 3.095 MB / 489.1 MB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009659/0.4508, allocations: 467.6 kB / 489.6 MB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.4511, allocations: 24 kB / 489.6 MB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000952/0.452, allocations: 79.91 kB / 489.7 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.4522, allocations: 93.19 kB / 489.8 MB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/0.4523, allocations: 39.98 kB / 489.8 MB, free: 10.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002033/0.4543, allocations: 1.281 MB / 491.1 MB, free: 8.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4544, allocations: 0 / 491.1 MB, free: 8.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00171/0.4561, allocations: 0.5312 MB / 491.6 MB, free: 8.41 MB / 414.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.00528/0.4614, allocations: 3.715 MB / 495.3 MB, free: 4.629 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003637/0.465, allocations: 2.212 MB / 497.5 MB, free: 2.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/0.465, allocations: 4 kB / 497.6 MB, free: 2.359 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00183/0.4669, allocations: 1.174 MB / 498.7 MB, free: 1.133 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00302/0.4699, allocations: 0.5235 MB / 499.2 MB, free: 0.6055 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03226/0.5022, allocations: 20.05 MB / 0.5071 GB, free: 11.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002243/0.5045, allocations: 2.259 MB / 0.5093 GB, free: 9.461 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001657/0.5062, allocations: 0.5131 MB / 0.5098 GB, free: 8.945 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001624/0.5078, allocations: 1.179 MB / 0.511 GB, free: 7.77 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5078, allocations: 0 / 0.511 GB, free: 7.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2731/0.7809, allocations: 49.61 MB / 0.5594 GB, free: 154.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/15.27, allocations: 7.766 kB / 0.5594 GB, free: 154.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches