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.00141/0.00141, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.001205/0.001205, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.297/1.297, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001423/0.001423, allocations: 51.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08585/0.08729, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2128/0.3001, allocations: 15.12 MB / 389.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.3111, allocations: 5.113 MB / 394.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004026/0.3152, allocations: 88.16 kB / 395 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003922/0.3191, allocations: 1.058 MB / 396 MB, free: 448 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005672/0.3248, allocations: 1.256 MB / 397.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003206/0.3281, allocations: 0.9048 MB / 398.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006841/0.3349, allocations: 3.624 MB / 401.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006565/0.3415, allocations: 3.25 MB / 405.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004395/0.346, allocations: 1.727 MB / 406.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005021/0.351, allocations: 2.052 MB / 408.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002028/0.3531, allocations: 479.5 kB / 409.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003437/0.3565, allocations: 0.6789 MB / 410 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00258/0.3591, allocations: 1.139 MB / 411.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005993/0.3652, allocations: 2.047 MB / 413.2 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.3758, allocations: 6.249 MB / 419.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.3758, allocations: 5.344 kB / 419.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3758, allocations: 0 / 419.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002757/0.3761, allocations: 0 / 419.4 MB, free: 2.793 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.01521/0.3913, allocations: 4.237 MB / 423.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.3914, allocations: 12.03 kB / 423.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001576/0.393, allocations: 443.3 kB / 424.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003702/0.3967, allocations: 0.6251 MB / 424.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005225/0.402, allocations: 2.136 MB / 426.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.4022, allocations: 234.9 kB / 427.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001057/0.4033, allocations: 319.8 kB / 427.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009755/0.4131, allocations: 4.039 MB / 431.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.4132, allocations: 0 / 431.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006838/0.4139, allocations: 128 kB / 431.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001721/0.4141, allocations: 150.2 kB / 431.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007277/0.4214, allocations: 3.382 MB / 435.1 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02335/0.4448, allocations: 13.17 MB / 448.3 MB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0044/0.4492, allocations: 3.958 MB / 452.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.4509, allocations: 0.9799 MB / 453.2 MB, free: 204 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005138/0.4561, allocations: 2.657 MB / 455.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.4561, allocations: 43.56 kB / 455.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.906e-06/0.4561, allocations: 0 / 455.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01276/0.4689, allocations: 6.001 MB / 461.9 MB, free: 7.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.469, allocations: 64.72 kB / 462 MB, free: 7.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003682/0.4727, allocations: 1.893 MB / 463.9 MB, free: 5.285 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.4729, allocations: 45.7 kB / 463.9 MB, free: 5.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.474, allocations: 1.505 MB / 465.4 MB, free: 3.711 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004593/0.4745, allocations: 492.9 kB / 465.9 MB, free: 3.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005805/0.475, allocations: 331.2 kB / 466.2 MB, free: 2.891 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.528e-05/0.4751, allocations: 305.1 kB / 466.5 MB, free: 2.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.4764, allocations: 0.7652 MB / 467.3 MB, free: 1.824 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.478, allocations: 1.383 MB / 468.7 MB, free: 176 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003083/0.4811, allocations: 2.316 MB / 471 MB, free: 13.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.135e-05/0.4811, allocations: 8 kB / 471 MB, free: 13.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004111/0.4853, allocations: 2.474 MB / 473.5 MB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.4853, allocations: 20.17 kB / 473.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.113e-05/0.4854, allocations: 20 kB / 473.5 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000371/0.4857, allocations: 114.5 kB / 473.6 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.4876, allocations: 495.2 kB / 474.1 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.4888, allocations: 1.402 MB / 475.5 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.4904, allocations: 119.7 kB / 475.6 MB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/0.4906, allocations: 79.94 kB / 475.7 MB, free: 8.707 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.00165/0.4922, allocations: 0.9967 MB / 476.7 MB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004984/0.4927, allocations: 205.5 kB / 476.9 MB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003515/0.4962, allocations: 1.961 MB / 478.9 MB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.4963, allocations: 12 kB / 478.9 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4963, allocations: 4 kB / 478.9 MB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.4963, allocations: 7.969 kB / 478.9 MB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009082/0.5054, allocations: 4.983 MB / 483.9 MB, free: 408 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.5054, allocations: 4.25 kB / 483.9 MB, free: 404 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.5068, allocations: 319.5 kB / 484.2 MB, free: 84 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003251/0.5072, allocations: 90.53 kB / 484.3 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.5073, allocations: 31.98 kB / 484.3 MB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009891/0.5083, allocations: 1.375 MB / 485.7 MB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5083, allocations: 4 kB / 485.7 MB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004601/0.5129, allocations: 3.082 MB / 488.8 MB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/0.514, allocations: 458.4 kB / 489.2 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004927/0.5145, allocations: 28 kB / 489.3 MB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.5157, allocations: 87.95 kB / 489.3 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.5159, allocations: 81.14 kB / 489.4 MB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-05/0.516, allocations: 47.98 kB / 489.5 MB, free: 10.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002468/0.5185, allocations: 1.281 MB / 490.7 MB, free: 9.281 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5185, allocations: 0 / 490.7 MB, free: 9.281 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002101/0.5206, allocations: 0.5312 MB / 491.3 MB, free: 8.75 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.004949/0.5256, allocations: 3.703 MB / 495 MB, free: 4.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0035/0.5291, allocations: 2.216 MB / 497.2 MB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5291, allocations: 0 / 497.2 MB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.5307, allocations: 1.179 MB / 498.4 MB, free: 1.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002921/0.5337, allocations: 0.5157 MB / 498.9 MB, free: 0.9609 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03249/0.5662, allocations: 19.95 MB / 0.5067 GB, free: 12.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002967/0.5692, allocations: 2.263 MB / 0.5089 GB, free: 9.926 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001864/0.5711, allocations: 0.5053 MB / 0.5094 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/0.5729, allocations: 1.183 MB / 0.5105 GB, free: 8.238 MB / 446.1 MB Notification: Performance of SimCode: time 1.213e-06/0.5729, allocations: 0 / 0.5105 GB, free: 8.238 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2749/0.8478, allocations: 49.89 MB / 0.5593 GB, free: 155.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/14.35, allocations: 15.45 kB / 0.5593 GB, free: 155.3 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