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.00199/0.00199, allocations: 104.2 kB / 17.58 MB, free: 5.41 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.003207/0.003207, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.1 MB / 224.4 MB, free: 12.27 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.001292/0.001293, allocations: 56.14 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.108, allocations: 46.62 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01908/0.1271, allocations: 15.13 MB / 342.5 MB, free: 5.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01556/0.1428, allocations: 5.113 MB / 347.6 MB, free: 32 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004631/0.1475, allocations: 87.67 kB / 347.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005327/0.1529, allocations: 1.052 MB / 348.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00802/0.161, allocations: 1.258 MB / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004531/0.1656, allocations: 0.904 MB / 350.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00847/0.1741, allocations: 3.604 MB / 354.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007176/0.1813, allocations: 3.258 MB / 357.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00412/0.1855, allocations: 1.709 MB / 359.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004164/0.1897, allocations: 2.047 MB / 361.5 MB, free: 2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/0.191, allocations: 480 kB / 362 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.1928, allocations: 0.6834 MB / 362.7 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.1939, allocations: 1.145 MB / 363.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002521/0.1964, allocations: 2.038 MB / 365.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008179/0.2046, allocations: 6.196 MB / 372.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.258e-06/0.2047, allocations: 0 / 372.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.2047, allocations: 0 / 372.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002241/0.2049, allocations: 0 / 372.1 MB, free: 7.438 MB / 318.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.01884/0.2238, allocations: 4.234 MB / 376.3 MB, free: 3.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.539e-05/0.2239, allocations: 8.031 kB / 376.3 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001743/0.2256, allocations: 443.3 kB / 376.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006475/0.2321, allocations: 0.6289 MB / 377.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2162/0.4484, allocations: 2.122 MB / 379.5 MB, free: 49.28 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003922/0.4488, allocations: 241.7 kB / 379.7 MB, free: 49.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/0.45, allocations: 310.1 kB / 380 MB, free: 49.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008645/0.4586, allocations: 4.039 MB / 384.1 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-05/0.4587, allocations: 9.297 kB / 384.1 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000321/0.4591, allocations: 121.8 kB / 384.2 MB, free: 47.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000168/0.4592, allocations: 147.8 kB / 384.3 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007165/0.4664, allocations: 3.377 MB / 387.7 MB, free: 46.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02602/0.4925, allocations: 13.34 MB / 401.1 MB, free: 37.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005174/0.4977, allocations: 3.958 MB / 405 MB, free: 34.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002368/0.5001, allocations: 1.006 MB / 406 MB, free: 33.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006218/0.5064, allocations: 2.659 MB / 408.7 MB, free: 31.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.5065, allocations: 44.31 kB / 408.7 MB, free: 31.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 6.202e-06/0.5065, allocations: 0 / 408.7 MB, free: 31.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01674/0.5232, allocations: 6.012 MB / 414.7 MB, free: 25.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.5234, allocations: 78.42 kB / 414.8 MB, free: 25.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004002/0.5274, allocations: 1.885 MB / 416.7 MB, free: 23.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002139/0.5276, allocations: 45.7 kB / 416.7 MB, free: 23.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.5287, allocations: 1.508 MB / 418.3 MB, free: 22.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00042/0.5291, allocations: 488.5 kB / 418.7 MB, free: 21.58 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006421/0.5298, allocations: 335.2 kB / 419.1 MB, free: 21.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.712e-05/0.5298, allocations: 309 kB / 419.4 MB, free: 20.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.5314, allocations: 0.7652 MB / 420.1 MB, free: 20.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.5333, allocations: 1.379 MB / 421.5 MB, free: 18.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003619/0.5369, allocations: 2.31 MB / 423.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-05/0.537, allocations: 4 kB / 423.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005321/0.5423, allocations: 2.473 MB / 426.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.5424, allocations: 12 kB / 426.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/0.5424, allocations: 20 kB / 426.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004588/0.5429, allocations: 126.9 kB / 426.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002603/0.5455, allocations: 487.2 kB / 426.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.5466, allocations: 1.406 MB / 428.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/0.549, allocations: 116 kB / 428.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.5492, allocations: 87.83 kB / 428.5 MB, free: 11.08 MB / 318.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.002204/0.5514, allocations: 0.9889 MB / 429.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005537/0.5519, allocations: 197.6 kB / 429.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004359/0.5563, allocations: 1.969 MB / 431.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.5564, allocations: 12 kB / 431.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.5564, allocations: 0 / 431.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.5564, allocations: 7.969 kB / 431.7 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/0.5674, allocations: 4.993 MB / 436.7 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.5674, allocations: 0 / 436.7 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002011/0.5695, allocations: 319.5 kB / 437 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004367/0.5699, allocations: 98.61 kB / 437.1 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.5701, allocations: 29.75 kB / 437.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.5712, allocations: 1.378 MB / 438.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5712, allocations: 4 kB / 438.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006933/0.5781, allocations: 3.085 MB / 441.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/0.5798, allocations: 454.5 kB / 442 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005275/0.5803, allocations: 28 kB / 442.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.5819, allocations: 79.84 kB / 442.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002776/0.5822, allocations: 85.19 kB / 442.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.5824, allocations: 40.06 kB / 442.3 MB, free: 13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.003323/0.5857, allocations: 1.285 MB / 443.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.855e-06/0.5857, allocations: 4 kB / 443.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003402/0.5892, allocations: 0.5295 MB / 444.1 MB, free: 11.16 MB / 334.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.008292/0.5975, allocations: 3.7 MB / 447.8 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.009548/0.6071, allocations: 2.833 MB / 450.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.6071, allocations: 3.938 kB / 450.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002609/0.6098, allocations: 1.178 MB / 451.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004699/0.6145, allocations: 0.5046 MB / 452.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05361/0.6681, allocations: 22.34 MB / 474.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003319/0.6715, allocations: 2.259 MB / 476.9 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002227/0.6738, allocations: 0.5131 MB / 477.4 MB, free: 7.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/0.6759, allocations: 1.183 MB / 478.6 MB, free: 6.535 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6759, allocations: 4 kB / 478.6 MB, free: 6.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/0.7829, allocations: 48.4 MB / 0.5147 GB, free: 5.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.22/17, allocations: 16.17 kB / 0.5147 GB, free: 5.973 MB / 414.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