Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001702/0.001702, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0018/0.0018, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 60.92 kB / 307.1 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 50.52 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1758/0.2784, allocations: 15.8 MB / 373.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0094/0.2878, allocations: 5.347 MB / 378.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002401/0.2902, allocations: 100.4 kB / 378.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.2929, allocations: 1.079 MB / 379.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00363/0.2966, allocations: 1.232 MB / 381.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002191/0.2988, allocations: 0.9239 MB / 382.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004294/0.3031, allocations: 3.628 MB / 385.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003983/0.3071, allocations: 3.326 MB / 389 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002917/0.31, allocations: 1.729 MB / 390.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002936/0.313, allocations: 2.112 MB / 392.9 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007998/0.3138, allocations: 480.2 kB / 393.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0017/0.3155, allocations: 0.7159 MB / 394 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008575/0.3164, allocations: 1.146 MB / 395.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002079/0.3185, allocations: 2.048 MB / 397.2 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005955/0.3245, allocations: 6.239 MB / 403.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3245, allocations: 0 / 403.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3245, allocations: 0 / 403.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001123/0.3246, allocations: 0 / 403.5 MB, free: 12.62 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.009764/0.3344, allocations: 4.283 MB / 407.8 MB, free: 9.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.3344, allocations: 8.031 kB / 407.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006459/0.3351, allocations: 447.3 kB / 408.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00285/0.338, allocations: 0.6247 MB / 408.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003919/0.3419, allocations: 2.226 MB / 411.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.3421, allocations: 245.1 kB / 411.3 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005239/0.3427, allocations: 311.8 kB / 411.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006825/0.3495, allocations: 4.048 MB / 415.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.153e-05/0.3496, allocations: 0 / 415.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000292/0.3499, allocations: 130.2 kB / 415.8 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.35, allocations: 146.2 kB / 415.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005826/0.3559, allocations: 3.389 MB / 419.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01822/0.3741, allocations: 13.5 MB / 432.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004295/0.3784, allocations: 4.277 MB / 437.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.3801, allocations: 1.042 MB / 438.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004402/0.3845, allocations: 2.858 MB / 441 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.3845, allocations: 43.56 kB / 441 MB, free: 6.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 4.368e-06/0.3845, allocations: 3.984 kB / 441 MB, free: 6.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01172/0.3963, allocations: 5.98 MB / 447 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.3963, allocations: 72.66 kB / 447.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003055/0.3994, allocations: 1.907 MB / 449 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.3995, allocations: 53.7 kB / 449 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.4007, allocations: 1.511 MB / 450.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004199/0.4011, allocations: 496.6 kB / 451 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005114/0.4016, allocations: 331.2 kB / 451.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.4017, allocations: 305.1 kB / 451.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.403, allocations: 0.7691 MB / 452.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001577/0.4045, allocations: 1.375 MB / 453.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003236/0.4078, allocations: 2.316 MB / 456.1 MB, free: 6.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.005e-05/0.4078, allocations: 12 kB / 456.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004683/0.4125, allocations: 2.462 MB / 458.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/0.4126, allocations: 12.72 kB / 458.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.772e-05/0.4126, allocations: 23.94 kB / 458.6 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004475/0.4131, allocations: 134.4 kB / 458.8 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.4149, allocations: 479.2 kB / 459.2 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.4161, allocations: 1.406 MB / 460.6 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.4179, allocations: 115.8 kB / 460.8 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/0.418, allocations: 76 kB / 460.8 MB, free: 2.047 MB / 366.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.001733/0.4198, allocations: 1.001 MB / 461.8 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004917/0.4203, allocations: 205.5 kB / 462 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/0.4237, allocations: 1.966 MB / 464 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.4238, allocations: 12 kB / 464 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4238, allocations: 0 / 464 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.4238, allocations: 11.97 kB / 464 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008376/0.4322, allocations: 5.001 MB / 469 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.4322, allocations: 4 kB / 469 MB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.4335, allocations: 307.7 kB / 469.3 MB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/0.4339, allocations: 98.52 kB / 469.4 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.745e-05/0.434, allocations: 28 kB / 469.4 MB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009778/0.435, allocations: 1.374 MB / 470.8 MB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.435, allocations: 4.156 kB / 470.8 MB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004463/0.4394, allocations: 3.085 MB / 473.9 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008505/0.4403, allocations: 458.5 kB / 474.4 MB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003395/0.4407, allocations: 24 kB / 474.4 MB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.4417, allocations: 79.97 kB / 474.5 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.4419, allocations: 93.12 kB / 474.5 MB, free: 4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.174e-05/0.442, allocations: 39.94 kB / 474.6 MB, free: 3.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002028/0.444, allocations: 1.294 MB / 475.9 MB, free: 2.645 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.444, allocations: 0 / 475.9 MB, free: 2.645 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001725/0.4458, allocations: 0.5469 MB / 476.4 MB, free: 2.098 MB / 382.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.004906/0.4507, allocations: 3.712 MB / 480.1 MB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005346/0.456, allocations: 2.83 MB / 483 MB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.4561, allocations: 4 kB / 483 MB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.4576, allocations: 1.17 MB / 484.1 MB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.46, allocations: 0.5337 MB / 484.7 MB, free: 9.684 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03739/0.4974, allocations: 22.37 MB / 0.4952 GB, free: 1.355 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002598/0.5001, allocations: 2.268 MB / 0.4974 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001973/0.5021, allocations: 0.5133 MB / 0.4979 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001848/0.5039, allocations: 1.179 MB / 0.499 GB, free: 13.36 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.504, allocations: 4 kB / 0.499 GB, free: 13.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2357/0.7397, allocations: 48.88 MB / 0.5468 GB, free: 146.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.99, allocations: 9.797 kB / 0.5468 GB, free: 146.1 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches