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.001443/0.001444, allocations: 104.9 kB / 17.72 MB, free: 5.242 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.0016/0.0016, allocations: 188.1 kB / 18.66 MB, free: 4.312 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.35/1.35, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001338/0.001338, allocations: 43.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09768/0.09903, allocations: 46.62 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.209/0.3081, allocations: 15.12 MB / 389.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.3203, allocations: 5.121 MB / 394.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003531/0.3239, allocations: 88.06 kB / 395 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003822/0.3277, allocations: 1.059 MB / 396 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004802/0.3325, allocations: 1.251 MB / 397.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003205/0.3358, allocations: 0.8967 MB / 398.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006002/0.3418, allocations: 3.627 MB / 401.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005769/0.3476, allocations: 3.259 MB / 405.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003715/0.3513, allocations: 1.72 MB / 406.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004222/0.3556, allocations: 2.05 MB / 408.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001842/0.3575, allocations: 479.2 kB / 409.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003465/0.361, allocations: 0.6835 MB / 410 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002242/0.3632, allocations: 1.134 MB / 411.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005791/0.369, allocations: 2.039 MB / 413.2 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01024/0.3793, allocations: 6.257 MB / 419.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.3794, allocations: 3.938 kB / 419.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3794, allocations: 5.375 kB / 419.4 MB, free: 2.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002589/0.3796, allocations: 0 / 419.4 MB, free: 2.809 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.01576/0.3954, allocations: 4.239 MB / 423.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.3955, allocations: 8.031 kB / 423.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001454/0.3969, allocations: 447.3 kB / 424.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003769/0.4007, allocations: 0.6173 MB / 424.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005558/0.4063, allocations: 2.132 MB / 426.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002803/0.4066, allocations: 234.9 kB / 427.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00116/0.4078, allocations: 319.8 kB / 427.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/0.4183, allocations: 4.039 MB / 431.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/0.4184, allocations: 4 kB / 431.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006958/0.4191, allocations: 128 kB / 431.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001794/0.4193, allocations: 146.2 kB / 431.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007667/0.427, allocations: 3.378 MB / 435.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0245/0.4515, allocations: 13.18 MB / 448.3 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004635/0.4562, allocations: 3.958 MB / 452.2 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.458, allocations: 0.9838 MB / 453.2 MB, free: 232 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005434/0.4635, allocations: 2.649 MB / 455.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.4636, allocations: 47.56 kB / 455.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 4.228e-06/0.4636, allocations: 0 / 455.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01285/0.4764, allocations: 6.001 MB / 461.9 MB, free: 7.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.4765, allocations: 68.72 kB / 462 MB, free: 7.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003465/0.48, allocations: 1.893 MB / 463.9 MB, free: 5.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.4802, allocations: 45.7 kB / 463.9 MB, free: 5.262 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.4814, allocations: 1.508 MB / 465.4 MB, free: 3.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005045/0.4819, allocations: 488.9 kB / 465.9 MB, free: 3.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006321/0.4825, allocations: 331.2 kB / 466.2 MB, free: 2.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4826, allocations: 305.1 kB / 466.5 MB, free: 2.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001375/0.484, allocations: 0.7652 MB / 467.3 MB, free: 1.852 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.4858, allocations: 1.379 MB / 468.7 MB, free: 208 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/0.4892, allocations: 2.32 MB / 471 MB, free: 13.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-05/0.4893, allocations: 7.938 kB / 471 MB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00458/0.4938, allocations: 2.469 MB / 473.5 MB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.4939, allocations: 12 kB / 473.5 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-05/0.4939, allocations: 20 kB / 473.5 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003888/0.4943, allocations: 134.9 kB / 473.6 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/0.4962, allocations: 487.2 kB / 474.1 MB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/0.4975, allocations: 1.402 MB / 475.5 MB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.4993, allocations: 123.9 kB / 475.6 MB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/0.4996, allocations: 80 kB / 475.7 MB, free: 8.73 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.001947/0.5015, allocations: 0.9928 MB / 476.7 MB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005331/0.5021, allocations: 201.5 kB / 476.9 MB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003724/0.5058, allocations: 1.961 MB / 478.9 MB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.5059, allocations: 20 kB / 478.9 MB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.5059, allocations: 0 / 478.9 MB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.5059, allocations: 7.969 kB / 478.9 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009738/0.5156, allocations: 4.979 MB / 483.9 MB, free: 440 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.5157, allocations: 4 kB / 483.9 MB, free: 436 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/0.5171, allocations: 319.8 kB / 484.2 MB, free: 116 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.5175, allocations: 98.45 kB / 484.3 MB, free: 8 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.5176, allocations: 31.98 kB / 484.3 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.5186, allocations: 1.367 MB / 485.7 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5186, allocations: 0 / 485.7 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004758/0.5234, allocations: 3.094 MB / 488.8 MB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.5245, allocations: 454.4 kB / 489.2 MB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004939/0.525, allocations: 28 kB / 489.2 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.5263, allocations: 75.91 kB / 489.3 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.5266, allocations: 97.19 kB / 489.4 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.507e-05/0.5267, allocations: 39.98 kB / 489.4 MB, free: 10.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002517/0.5292, allocations: 1.281 MB / 490.7 MB, free: 9.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5292, allocations: 0 / 490.7 MB, free: 9.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002229/0.5314, allocations: 0.5312 MB / 491.3 MB, free: 8.781 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.005335/0.5368, allocations: 3.703 MB / 495 MB, free: 5.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003639/0.5404, allocations: 2.217 MB / 497.2 MB, free: 2.742 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.5405, allocations: 448 / 497.2 MB, free: 2.742 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.5421, allocations: 1.181 MB / 498.4 MB, free: 1.508 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/0.5452, allocations: 0.5162 MB / 498.9 MB, free: 0.9883 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0373/0.5825, allocations: 19.94 MB / 0.5067 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002847/0.5854, allocations: 2.259 MB / 0.5089 GB, free: 9.961 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001977/0.5874, allocations: 0.5092 MB / 0.5094 GB, free: 9.449 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00183/0.5893, allocations: 1.179 MB / 0.5105 GB, free: 8.273 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5893, allocations: 4 kB / 0.5105 GB, free: 8.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3054/0.8947, allocations: 49.62 MB / 0.559 GB, free: 154.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.87/14.76, allocations: 9.141 kB / 0.559 GB, free: 154.5 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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