Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_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.001415/0.001416, allocations: 116.2 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001574/0.001574, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 59.36 kB / 306.6 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08668/0.08779, allocations: 50.53 MB / 357.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1863/0.2742, allocations: 41.04 MB / 398.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02424/0.2985, allocations: 11.04 MB / 409.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008125/0.3066, allocations: 300.5 kB / 409.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01844/0.3251, allocations: 8.239 MB / 417.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01254/0.3377, allocations: 3.198 MB / 420.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006832/0.3445, allocations: 2.244 MB / 423.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01521/0.3597, allocations: 13.46 MB / 436.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03052/0.3903, allocations: 28.96 MB / 465.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008589/0.3989, allocations: 6.976 MB / 472.6 MB, free: 8.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009547/0.4085, allocations: 7.992 MB / 480.6 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002604/0.4111, allocations: 1.992 MB / 482.6 MB, free: 14.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004047/0.4151, allocations: 2.413 MB / 485 MB, free: 12.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003074/0.4182, allocations: 4.045 MB / 489 MB, free: 8.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00876/0.427, allocations: 7.77 MB / 496.8 MB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02951/0.4565, allocations: 26.31 MB / 0.5108 GB, free: 6.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.4566, allocations: 0 / 0.5108 GB, free: 6.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4566, allocations: 0 / 0.5108 GB, free: 6.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006926/0.4573, allocations: 0 / 0.5108 GB, free: 6.25 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04153/0.4988, allocations: 15.5 MB / 0.526 GB, free: 6.637 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.4989, allocations: 12.03 kB / 0.526 GB, free: 6.625 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004529/0.5034, allocations: 1.756 MB / 0.5277 GB, free: 4.855 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1883/0.6917, allocations: 6.199 MB / 0.5338 GB, free: 131.6 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01629/0.7081, allocations: 8.012 MB / 0.5416 GB, free: 128.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007189/0.7088, allocations: 0.9379 MB / 0.5425 GB, free: 128.1 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003615/0.7124, allocations: 1.227 MB / 0.5437 GB, free: 127.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03777/0.7502, allocations: 19.03 MB / 0.5623 GB, free: 119.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004146/0.7507, allocations: 29.98 kB / 0.5623 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002719/0.7534, allocations: 0.5087 MB / 0.5628 GB, free: 119.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004918/0.7539, allocations: 0.65 MB / 0.5634 GB, free: 119.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02748/0.7814, allocations: 17.02 MB / 0.5801 GB, free: 103.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07308/0.8545, allocations: 61.35 MB / 0.64 GB, free: 40.81 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01656/0.8711, allocations: 33.5 MB / 0.6727 GB, free: 3.426 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004549/0.8757, allocations: 3.842 MB / 0.6764 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01372/0.8894, allocations: 9.092 MB / 0.6853 GB, free: 6.453 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.176e-05/0.8895, allocations: 73.34 kB / 0.6854 GB, free: 6.371 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 4.188e-06/0.8895, allocations: 0 / 0.6854 GB, free: 6.371 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.03108/0.9206, allocations: 17.78 MB / 0.7028 GB, free: 4.477 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.9207, allocations: 94.58 kB / 0.7028 GB, free: 4.371 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1596/1.08, allocations: 5.251 MB / 0.708 GB, free: 147.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005997/1.081, allocations: 90.14 kB / 0.7081 GB, free: 147.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00268/1.084, allocations: 5.628 MB / 0.7136 GB, free: 145.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009161/1.085, allocations: 1.403 MB / 0.7149 GB, free: 144.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001703/1.086, allocations: 1.353 MB / 0.7162 GB, free: 143.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.629e-05/1.086, allocations: 305.7 kB / 0.7165 GB, free: 143.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00354/1.09, allocations: 2.97 MB / 0.7194 GB, free: 142.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004056/1.094, allocations: 6.009 MB / 0.7253 GB, free: 137.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008988/1.103, allocations: 9.664 MB / 0.7347 GB, free: 129.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-05/1.103, allocations: 29.28 kB / 0.7348 GB, free: 129.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01313/1.116, allocations: 10.09 MB / 0.7446 GB, free: 125.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.22e-05/1.116, allocations: 48.75 kB / 0.7447 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.232e-05/1.116, allocations: 111.5 kB / 0.7448 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002033/1.118, allocations: 0.9536 MB / 0.7457 GB, free: 125.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004492/1.123, allocations: 1.618 MB / 0.7473 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00919/1.132, allocations: 10.21 MB / 0.7573 GB, free: 118.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004294/1.136, allocations: 416.9 kB / 0.7577 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004046/1.137, allocations: 362.6 kB / 0.758 GB, free: 118.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005047/1.142, allocations: 4.301 MB / 0.7622 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008379/1.143, allocations: 0.5516 MB / 0.7627 GB, free: 115.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008528/1.151, allocations: 6.666 MB / 0.7692 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.067e-05/1.151, allocations: 44 kB / 0.7693 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.807e-05/1.151, allocations: 8 kB / 0.7693 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.054e-05/1.151, allocations: 20.3 kB / 0.7693 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01831/1.17, allocations: 16.26 MB / 0.7852 GB, free: 97.54 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/1.17, allocations: 4.875 kB / 0.7852 GB, free: 97.54 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/1.172, allocations: 0.7806 MB / 0.786 GB, free: 96.76 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/1.174, allocations: 0.7918 MB / 0.7867 GB, free: 95.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002146/1.174, allocations: 95.81 kB / 0.7868 GB, free: 95.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007342/1.182, allocations: 9.349 MB / 0.796 GB, free: 86.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.182, allocations: 4 kB / 0.796 GB, free: 86.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/1.194, allocations: 9.787 MB / 0.8055 GB, free: 76.19 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/1.196, allocations: 1.092 MB / 0.8066 GB, free: 75.07 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006251/1.196, allocations: 83.89 kB / 0.8067 GB, free: 74.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/1.198, allocations: 223.8 kB / 0.8069 GB, free: 74.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004621/1.199, allocations: 282.8 kB / 0.8071 GB, free: 74.49 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/1.199, allocations: 116 kB / 0.8073 GB, free: 74.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00387/1.203, allocations: 3.502 MB / 0.8107 GB, free: 70.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.203, allocations: 0 / 0.8107 GB, free: 70.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005095/1.208, allocations: 1.946 MB / 0.8126 GB, free: 68.96 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.01081/1.219, allocations: 10.55 MB / 0.8229 GB, free: 58.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02726/1.246, allocations: 13.46 MB / 0.836 GB, free: 44.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/1.246, allocations: 4.062 kB / 0.836 GB, free: 44.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004556/1.251, allocations: 3.642 MB / 0.8396 GB, free: 41.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007904/1.259, allocations: 1.406 MB / 0.841 GB, free: 39.72 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2727/1.531, allocations: 89.59 MB / 0.9285 GB, free: 143.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009324/1.541, allocations: 7.424 MB / 0.9357 GB, free: 140.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006263/1.547, allocations: 2.199 MB / 0.9378 GB, free: 138.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005767/1.553, allocations: 4.506 MB / 0.9422 GB, free: 134 MB / 494.1 MB Notification: Performance of SimCode: time 8.61e-07/1.553, allocations: 0 / 0.9422 GB, free: 134 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.667/3.22, allocations: 156 MB / 1.095 GB, free: 149.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/3.22, allocations: 297.5 kB / 1.095 GB, free: 149.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.823/8.043, allocations: 3.469 kB / 1.095 GB, free: 149.4 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches