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.001494/0.001495, allocations: 113.8 kB / 17.73 MB, free: 5.23 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.001641/0.001641, allocations: 187.1 kB / 18.66 MB, free: 4.305 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.517/1.517, 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.001318/0.001318, allocations: 51.89 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/0.09535, 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.217/0.3124, allocations: 15.12 MB / 389.8 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.3248, allocations: 5.114 MB / 394.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004586/0.3296, allocations: 86.94 kB / 395 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004396/0.334, allocations: 1.116 MB / 396.1 MB, free: 388 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005999/0.34, allocations: 1.299 MB / 397.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00354/0.3436, allocations: 0.8981 MB / 398.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007247/0.3509, allocations: 3.63 MB / 401.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0065/0.3574, allocations: 3.261 MB / 405.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004314/0.3618, allocations: 1.728 MB / 406.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005083/0.3669, allocations: 2.055 MB / 409 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002029/0.369, allocations: 478.5 kB / 409.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003505/0.3725, allocations: 0.6775 MB / 410.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002656/0.3752, allocations: 1.138 MB / 411.3 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005663/0.3809, allocations: 2.043 MB / 413.3 MB, free: 7.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.3926, allocations: 6.274 MB / 419.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.3926, allocations: 0 / 419.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3926, allocations: 0 / 419.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002653/0.3929, allocations: 0 / 419.6 MB, free: 2.688 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.01566/0.4086, allocations: 4.331 MB / 423.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.4086, allocations: 12.03 kB / 423.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001641/0.4103, allocations: 451.2 kB / 424.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003937/0.4142, allocations: 0.6388 MB / 425 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006231/0.4205, allocations: 2.149 MB / 427.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000278/0.4208, allocations: 234.9 kB / 427.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/0.4221, allocations: 311.9 kB / 427.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01005/0.4322, allocations: 4.047 MB / 431.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.98e-05/0.4323, allocations: 0 / 431.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003245/0.4326, allocations: 128 kB / 431.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.4328, allocations: 142.2 kB / 432 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006581/0.4394, allocations: 3.386 MB / 435.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02645/0.4659, allocations: 13.2 MB / 448.6 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00489/0.4708, allocations: 3.978 MB / 452.5 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.4727, allocations: 0.976 MB / 453.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006106/0.4788, allocations: 2.666 MB / 456.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.4789, allocations: 47.55 kB / 456.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.436e-06/0.4789, allocations: 0 / 456.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.0139/0.4928, allocations: 6.042 MB / 462.3 MB, free: 6.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.4929, allocations: 68.66 kB / 462.3 MB, free: 6.871 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004399/0.4973, allocations: 1.893 MB / 464.2 MB, free: 4.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.4975, allocations: 49.7 kB / 464.3 MB, free: 4.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.499, allocations: 1.544 MB / 465.8 MB, free: 3.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005716/0.4996, allocations: 0.5035 MB / 466.3 MB, free: 2.812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007251/0.5003, allocations: 331.4 kB / 466.7 MB, free: 2.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.5004, allocations: 305.1 kB / 467 MB, free: 2.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.5019, allocations: 0.7652 MB / 467.7 MB, free: 1.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002011/0.5039, allocations: 1.383 MB / 469.1 MB, free: 15.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003484/0.5074, allocations: 2.32 MB / 471.4 MB, free: 13.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.368e-05/0.5075, allocations: 4 kB / 471.4 MB, free: 13.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00496/0.5124, allocations: 2.475 MB / 473.9 MB, free: 10.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.5125, allocations: 16.12 kB / 473.9 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-05/0.5126, allocations: 24 kB / 473.9 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000433/0.513, allocations: 122.4 kB / 474.1 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001831/0.5148, allocations: 499.2 kB / 474.5 MB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.5161, allocations: 1.41 MB / 476 MB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/0.518, allocations: 111.8 kB / 476.1 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002003/0.5183, allocations: 80 kB / 476.1 MB, free: 8.285 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.001931/0.5202, allocations: 0.9928 MB / 477.1 MB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006461/0.5208, allocations: 210.6 kB / 477.3 MB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.5246, allocations: 1.961 MB / 479.3 MB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.5246, allocations: 12 kB / 479.3 MB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.5247, allocations: 4 kB / 479.3 MB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.5247, allocations: 7.969 kB / 479.3 MB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.5351, allocations: 4.987 MB / 484.3 MB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.5351, allocations: 256 / 484.3 MB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/0.5365, allocations: 323.5 kB / 484.6 MB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003479/0.5369, allocations: 98.47 kB / 484.7 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.537, allocations: 27.98 kB / 484.8 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.5381, allocations: 1.379 MB / 486.1 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5382, allocations: 4 kB / 486.1 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004936/0.5431, allocations: 3.087 MB / 489.2 MB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/0.5445, allocations: 471.6 kB / 489.7 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005395/0.545, allocations: 24 kB / 489.7 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.5464, allocations: 83.97 kB / 489.8 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.5466, allocations: 89.12 kB / 489.9 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.474e-05/0.5467, allocations: 39.98 kB / 489.9 MB, free: 10.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002677/0.5494, allocations: 1.285 MB / 491.2 MB, free: 8.836 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5494, allocations: 0 / 491.2 MB, free: 8.836 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002468/0.5519, allocations: 0.5312 MB / 491.7 MB, free: 8.305 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.005444/0.5573, allocations: 3.719 MB / 495.4 MB, free: 4.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003771/0.5611, allocations: 2.216 MB / 497.7 MB, free: 2.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.5611, allocations: 0 / 497.7 MB, free: 2.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001709/0.5628, allocations: 1.173 MB / 498.8 MB, free: 1.023 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003648/0.5665, allocations: 0.5122 MB / 499.4 MB, free: 0.5078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04378/0.6103, allocations: 20.06 MB / 0.5072 GB, free: 11.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003847/0.6142, allocations: 2.259 MB / 0.5094 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002271/0.6165, allocations: 0.5131 MB / 0.5099 GB, free: 8.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002125/0.6187, allocations: 1.183 MB / 0.5111 GB, free: 7.66 MB / 446.1 MB Notification: Performance of SimCode: time 1.914e-06/0.6187, allocations: 0 / 0.5111 GB, free: 7.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2967/0.9154, allocations: 49.61 MB / 0.5595 GB, free: 154.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/15.14, allocations: 11.89 kB / 0.5596 GB, free: 154.7 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