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.001249/0.001249, allocations: 106.9 kB / 17.58 MB, free: 5.559 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.001243/0.001243, allocations: 196 kB / 18.51 MB, free: 4.637 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.394/1.394, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001697/0.001697, allocations: 51.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09092/0.09263, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01833/0.111, allocations: 15.12 MB / 342.5 MB, free: 5.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.1211, allocations: 5.113 MB / 347.6 MB, free: 40 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.1236, allocations: 87.67 kB / 347.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002784/0.1264, allocations: 1.052 MB / 348.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0044/0.1308, allocations: 1.258 MB / 350 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002484/0.1333, allocations: 0.904 MB / 350.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005511/0.1388, allocations: 3.604 MB / 354.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004302/0.1432, allocations: 3.258 MB / 357.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002594/0.1458, allocations: 1.709 MB / 359.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003068/0.1489, allocations: 2.043 MB / 361.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009357/0.1498, allocations: 480 kB / 362 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001631/0.1515, allocations: 0.6872 MB / 362.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.1526, allocations: 1.145 MB / 363.8 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002602/0.1553, allocations: 2.034 MB / 365.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007342/0.1626, allocations: 6.196 MB / 372.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.1627, allocations: 0 / 372.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1627, allocations: 0 / 372.1 MB, free: 7.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001554/0.1628, allocations: 0 / 372.1 MB, free: 7.449 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.01174/0.1746, allocations: 4.23 MB / 376.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.1747, allocations: 8.031 kB / 376.3 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007542/0.1754, allocations: 451.2 kB / 376.8 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/0.1783, allocations: 0.6289 MB / 377.4 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.152/0.3303, allocations: 2.113 MB / 379.5 MB, free: 49.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000285/0.3307, allocations: 250 kB / 379.7 MB, free: 49.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001323/0.332, allocations: 308.7 kB / 380 MB, free: 49.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007273/0.3393, allocations: 4.038 MB / 384.1 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.679e-05/0.3394, allocations: 8.578 kB / 384.1 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.3396, allocations: 128 kB / 384.2 MB, free: 47.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001353/0.3398, allocations: 142.9 kB / 384.3 MB, free: 47.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005488/0.3453, allocations: 3.376 MB / 387.7 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01644/0.3617, allocations: 13.34 MB / 401.1 MB, free: 37.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003082/0.3649, allocations: 3.962 MB / 405 MB, free: 34.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.3662, allocations: 1.018 MB / 406 MB, free: 33.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003747/0.37, allocations: 2.649 MB / 408.7 MB, free: 31.67 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.3701, allocations: 48.22 kB / 408.7 MB, free: 31.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 3.457e-06/0.3701, allocations: 0.875 kB / 408.7 MB, free: 31.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01044/0.3805, allocations: 6.003 MB / 414.7 MB, free: 25.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.3806, allocations: 72.66 kB / 414.8 MB, free: 25.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002294/0.3829, allocations: 1.889 MB / 416.7 MB, free: 23.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.009e-05/0.383, allocations: 49.7 kB / 416.8 MB, free: 23.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006445/0.3836, allocations: 1.501 MB / 418.3 MB, free: 22.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.3839, allocations: 487.6 kB / 418.7 MB, free: 21.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004052/0.3843, allocations: 339.2 kB / 419.1 MB, free: 21.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.329e-05/0.3844, allocations: 301.1 kB / 419.4 MB, free: 20.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009416/0.3853, allocations: 0.773 MB / 420.1 MB, free: 20.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.3864, allocations: 1.375 MB / 421.5 MB, free: 18.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00219/0.3886, allocations: 2.31 MB / 423.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.375e-06/0.3887, allocations: 5.094 kB / 423.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003219/0.3919, allocations: 2.477 MB / 426.3 MB, free: 13.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3919, allocations: 16 kB / 426.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.3919, allocations: 16 kB / 426.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003053/0.3923, allocations: 114.8 kB / 426.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.3939, allocations: 499.2 kB / 426.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007151/0.3946, allocations: 1.41 MB / 428.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.396, allocations: 115.9 kB / 428.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.3962, allocations: 83.98 kB / 428.5 MB, free: 11.09 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.001309/0.3975, allocations: 0.9812 MB / 429.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.3978, allocations: 200.2 kB / 429.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.4004, allocations: 1.965 MB / 431.7 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.4004, allocations: 16 kB / 431.7 MB, free: 7.902 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4004, allocations: 0 / 431.7 MB, free: 7.902 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.4005, allocations: 11.97 kB / 431.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005984/0.4064, allocations: 4.99 MB / 436.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.4065, allocations: 4.234 kB / 436.7 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.4077, allocations: 315.6 kB / 437 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002601/0.408, allocations: 98.47 kB / 437.1 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.388e-05/0.4081, allocations: 31.98 kB / 437.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006131/0.4087, allocations: 1.378 MB / 438.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4087, allocations: 4 kB / 438.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004547/0.4133, allocations: 3.081 MB / 441.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/0.4143, allocations: 458.6 kB / 442 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/0.4146, allocations: 27.98 kB / 442.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000981/0.4156, allocations: 87.69 kB / 442.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.4158, allocations: 85.12 kB / 442.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.447e-05/0.4159, allocations: 40 kB / 442.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002051/0.4179, allocations: 1.289 MB / 443.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4179, allocations: 0 / 443.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001742/0.4197, allocations: 0.5256 MB / 444.1 MB, free: 11.18 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.005302/0.425, allocations: 3.701 MB / 447.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006132/0.4311, allocations: 2.832 MB / 450.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.4312, allocations: 1.875 kB / 450.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.433, allocations: 1.178 MB / 451.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/0.4361, allocations: 0.5154 MB / 452.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04088/0.477, allocations: 22.32 MB / 474.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002894/0.4799, allocations: 2.263 MB / 476.9 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001948/0.4819, allocations: 0.5131 MB / 477.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/0.4837, allocations: 1.183 MB / 478.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4837, allocations: 3.938 kB / 478.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1152/0.5989, allocations: 48.4 MB / 0.5147 GB, free: 6.012 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.7, allocations: 12.33 kB / 0.5147 GB, free: 6 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