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.001511/0.001511, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001613/0.001613, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 57.62 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.1014, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2148/0.3162, allocations: 41.81 MB / 399.4 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02324/0.3395, allocations: 11.21 MB / 410.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007176/0.3467, allocations: 316.9 kB / 410.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01771/0.3645, allocations: 8.77 MB / 419.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0105/0.375, allocations: 3.569 MB / 423.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00551/0.3805, allocations: 2.441 MB / 425.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01494/0.3954, allocations: 13.32 MB / 439 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03688/0.4324, allocations: 25.71 MB / 464.8 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01459/0.447, allocations: 6.95 MB / 471.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01723/0.4643, allocations: 8.035 MB / 479.7 MB, free: 1.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009497/0.4738, allocations: 1.992 MB / 481.7 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01058/0.4845, allocations: 2.417 MB / 484.2 MB, free: 13.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006358/0.4909, allocations: 4.037 MB / 488.2 MB, free: 9.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01311/0.504, allocations: 7.778 MB / 496 MB, free: 1.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03055/0.5346, allocations: 26.32 MB / 0.51 GB, free: 7.305 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.5346, allocations: 0 / 0.51 GB, free: 7.305 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5346, allocations: 0 / 0.51 GB, free: 7.305 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007365/0.5354, allocations: 0 / 0.51 GB, free: 7.305 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.04597/0.5813, allocations: 15.5 MB / 0.5252 GB, free: 7.684 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.5814, allocations: 8.031 kB / 0.5252 GB, free: 7.676 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00487/0.5863, allocations: 1.76 MB / 0.5269 GB, free: 5.902 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3365/0.9228, allocations: 6.194 MB / 0.533 GB, free: 128.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01596/0.9388, allocations: 8.038 MB / 0.5408 GB, free: 125.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008104/0.9396, allocations: 0.934 MB / 0.5417 GB, free: 124.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003842/0.9435, allocations: 1.231 MB / 0.5429 GB, free: 124.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04267/0.9861, allocations: 19.03 MB / 0.5615 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004282/0.9866, allocations: 24.38 kB / 0.5615 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003176/0.9898, allocations: 0.5021 MB / 0.562 GB, free: 116.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004886/0.9903, allocations: 0.6537 MB / 0.5627 GB, free: 116.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03086/1.021, allocations: 17.02 MB / 0.5793 GB, free: 101.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09027/1.111, allocations: 61.36 MB / 0.6392 GB, free: 38.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02039/1.132, allocations: 33.49 MB / 0.6719 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006438/1.138, allocations: 3.836 MB / 0.6757 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01807/1.156, allocations: 9.106 MB / 0.6845 GB, free: 4.547 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.886e-05/1.157, allocations: 81.34 kB / 0.6846 GB, free: 4.457 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 6.792e-06/1.157, allocations: 0 / 0.6846 GB, free: 4.457 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.03865/1.195, allocations: 17.76 MB / 0.702 GB, free: 2.574 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/1.195, allocations: 98.56 kB / 0.7021 GB, free: 2.465 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009468/1.205, allocations: 5.257 MB / 0.7072 GB, free: 13.23 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000665/1.206, allocations: 89.7 kB / 0.7073 GB, free: 13.13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003694/1.209, allocations: 5.63 MB / 0.7128 GB, free: 7.473 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001596/1.211, allocations: 1.393 MB / 0.7141 GB, free: 6.09 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002843/1.214, allocations: 1.354 MB / 0.7155 GB, free: 4.727 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.969e-05/1.214, allocations: 301.1 kB / 0.7158 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004701/1.219, allocations: 2.973 MB / 0.7187 GB, free: 1.453 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1795/1.398, allocations: 6.009 MB / 0.7245 GB, free: 154.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/1.409, allocations: 9.671 MB / 0.734 GB, free: 148.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002431/1.41, allocations: 29.5 kB / 0.734 GB, free: 148.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01889/1.429, allocations: 10.08 MB / 0.7438 GB, free: 145 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.429, allocations: 48.31 kB / 0.7439 GB, free: 145 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/1.429, allocations: 103.2 kB / 0.744 GB, free: 145 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002519/1.431, allocations: 0.9539 MB / 0.7449 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00548/1.437, allocations: 1.625 MB / 0.7465 GB, free: 144.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/1.447, allocations: 10.2 MB / 0.7565 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005536/1.453, allocations: 430.3 kB / 0.7569 GB, free: 137.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/1.454, allocations: 360.5 kB / 0.7572 GB, free: 137.5 MB / 494.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.006863/1.461, allocations: 4.3 MB / 0.7614 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/1.462, allocations: 0.5436 MB / 0.762 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/1.474, allocations: 6.672 MB / 0.7685 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-05/1.474, allocations: 42.81 kB / 0.7685 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/1.474, allocations: 11.78 kB / 0.7685 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-05/1.474, allocations: 23.16 kB / 0.7685 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02648/1.5, allocations: 16.27 MB / 0.7844 GB, free: 122.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/1.5, allocations: 7.938 kB / 0.7844 GB, free: 122.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003276/1.504, allocations: 0.7624 MB / 0.7852 GB, free: 121.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002327/1.506, allocations: 0.8114 MB / 0.786 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005344/1.506, allocations: 87.5 kB / 0.7861 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00915/1.516, allocations: 9.34 MB / 0.7952 GB, free: 112.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/1.516, allocations: 4 kB / 0.7952 GB, free: 112.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/1.529, allocations: 9.798 MB / 0.8047 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002496/1.532, allocations: 1.095 MB / 0.8058 GB, free: 101.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001317/1.533, allocations: 76 kB / 0.8059 GB, free: 101.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003016/1.536, allocations: 231.7 kB / 0.8061 GB, free: 101.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005647/1.537, allocations: 267.3 kB / 0.8064 GB, free: 101 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000247/1.537, allocations: 120 kB / 0.8065 GB, free: 100.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005086/1.542, allocations: 3.51 MB / 0.8099 GB, free: 97.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.542, allocations: 0 / 0.8099 GB, free: 97.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00833/1.551, allocations: 1.952 MB / 0.8118 GB, free: 95.46 MB / 494.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.01566/1.566, allocations: 10.52 MB / 0.8221 GB, free: 84.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0286/1.595, allocations: 13.48 MB / 0.8353 GB, free: 71.31 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/1.595, allocations: 4 kB / 0.8353 GB, free: 71.31 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005691/1.601, allocations: 3.634 MB / 0.8388 GB, free: 67.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007968/1.609, allocations: 1.405 MB / 0.8402 GB, free: 66.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2941/1.903, allocations: 84.59 MB / 0.9228 GB, free: 135.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008409/1.911, allocations: 7.428 MB / 0.93 GB, free: 133.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006542/1.918, allocations: 2.193 MB / 0.9322 GB, free: 133 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006636/1.925, allocations: 4.512 MB / 0.9366 GB, free: 129.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.373e-06/1.925, allocations: 0 / 0.9366 GB, free: 129.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3908/2.315, allocations: 156.1 MB / 1.089 GB, free: 133.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/16.24, allocations: 11.17 kB / 1.089 GB, free: 133.8 MB / 0.4982 GB (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