Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_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.001735/0.001735, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001984/0.001984, allocations: 200.7 kB / 18.73 MB, free: 4.312 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 / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 63.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2322, allocations: 50.55 MB / 408.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01518/0.2475, allocations: 10.95 MB / 419.8 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008451/0.256, allocations: 3.669 MB / 423.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.2579, allocations: 71.69 kB / 423.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002253/0.2602, allocations: 0.8257 MB / 424.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00279/0.263, allocations: 0.854 MB / 425.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.2645, allocations: 467.3 kB / 425.7 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004793/0.2693, allocations: 2.95 MB / 428.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003208/0.2725, allocations: 2.731 MB / 431.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001995/0.2745, allocations: 1.367 MB / 432.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00345/0.278, allocations: 1.767 MB / 434.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001163/0.2792, allocations: 372 kB / 434.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.2808, allocations: 475.8 kB / 435.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.2824, allocations: 1.075 MB / 436.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002313/0.2847, allocations: 1.672 MB / 438.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00572/0.2905, allocations: 4.916 MB / 443 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2905, allocations: 0 / 443 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2905, allocations: 0 / 443 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.792e-05/0.2906, allocations: 4 kB / 443 MB, free: 15.27 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.009065/0.2997, allocations: 3.477 MB / 446.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.2998, allocations: 8.031 kB / 446.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005032/0.3003, allocations: 371 kB / 446.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009731/0.3012, allocations: 366.8 kB / 447.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003374/0.3046, allocations: 1.828 MB / 449 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002245/0.3049, allocations: 197.1 kB / 449.2 MB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005699/0.3055, allocations: 252 kB / 449.4 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007791/0.3133, allocations: 3.279 MB / 452.7 MB, free: 5.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.894e-05/0.3133, allocations: 11.94 kB / 452.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/0.3136, allocations: 108 kB / 452.8 MB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/0.3137, allocations: 128.9 kB / 453 MB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00464/0.3184, allocations: 2.748 MB / 455.7 MB, free: 2.293 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0156/0.334, allocations: 10.41 MB / 466.1 MB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.336, allocations: 1.366 MB / 467.5 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/0.3372, allocations: 0.7579 MB / 468.2 MB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003066/0.3375, allocations: 207.2 kB / 468.4 MB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.3376, allocations: 39.56 kB / 468.5 MB, free: 5.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 5.189e-06/0.3376, allocations: 3.984 kB / 468.5 MB, free: 5.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01771/0.3553, allocations: 6.946 MB / 475.4 MB, free: 13.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.3555, allocations: 68.34 kB / 475.5 MB, free: 13.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00411/0.3596, allocations: 1.794 MB / 477.3 MB, free: 12.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.3597, allocations: 45.7 kB / 477.3 MB, free: 12.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.3608, allocations: 1.306 MB / 478.6 MB, free: 10.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004027/0.3612, allocations: 452.1 kB / 479.1 MB, free: 10.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004871/0.3617, allocations: 291.5 kB / 479.4 MB, free: 10 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3618, allocations: 317 kB / 479.7 MB, free: 9.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.363, allocations: 0.7691 MB / 480.5 MB, free: 8.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.3647, allocations: 1.296 MB / 481.7 MB, free: 7.402 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003584/0.3683, allocations: 2.206 MB / 484 MB, free: 4.969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.897e-05/0.3683, allocations: 12 kB / 484 MB, free: 4.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.0053/0.3736, allocations: 2.475 MB / 486.4 MB, free: 2.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.3737, allocations: 12 kB / 486.5 MB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/0.3737, allocations: 24.06 kB / 486.5 MB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006523/0.3744, allocations: 243.2 kB / 486.7 MB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.3759, allocations: 415.3 kB / 487.1 MB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/0.3791, allocations: 3.238 MB / 490.4 MB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002202/0.3814, allocations: 135.7 kB / 490.5 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/0.3816, allocations: 75.92 kB / 490.6 MB, free: 14.03 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002006/0.3836, allocations: 0.8213 MB / 491.4 MB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004316/0.384, allocations: 190.8 kB / 491.6 MB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.3876, allocations: 2.043 MB / 493.6 MB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.3876, allocations: 12 kB / 493.6 MB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3876, allocations: 4 kB / 493.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.3876, allocations: 7.969 kB / 493.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.3977, allocations: 4.745 MB / 498.4 MB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.3977, allocations: 0 / 498.4 MB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.399, allocations: 267.6 kB / 498.6 MB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000577/0.3996, allocations: 203.5 kB / 498.8 MB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.772e-05/0.3997, allocations: 20 kB / 498.9 MB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002822/0.4026, allocations: 3.219 MB / 0.4903 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4026, allocations: 4.062 kB / 0.4903 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00576/0.4083, allocations: 3.14 MB / 0.4934 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/0.4096, allocations: 435.7 kB / 0.4938 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/0.41, allocations: 27.94 kB / 0.4938 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.4115, allocations: 95.94 kB / 0.4939 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000257/0.4117, allocations: 80.83 kB / 0.494 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/0.4119, allocations: 35.98 kB / 0.494 GB, free: 14.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00249/0.4144, allocations: 1.22 MB / 0.4952 GB, free: 13 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4144, allocations: 0 / 0.4952 GB, free: 13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001636/0.416, allocations: 495.9 kB / 0.4957 GB, free: 12.51 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.00583/0.4219, allocations: 3.788 MB / 0.4994 GB, free: 8.656 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005586/0.4275, allocations: 2.358 MB / 0.5017 GB, free: 6.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.4275, allocations: 0 / 0.5017 GB, free: 6.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002043/0.4296, allocations: 1.339 MB / 0.503 GB, free: 4.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002493/0.4321, allocations: 0.4906 MB / 0.5035 GB, free: 4.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03376/0.4659, allocations: 18.8 MB / 0.5218 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/0.4679, allocations: 2.014 MB / 0.5238 GB, free: 14.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00142/0.4693, allocations: 0.496 MB / 0.5243 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/0.4707, allocations: 1.011 MB / 0.5253 GB, free: 13.24 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4707, allocations: 0 / 0.5253 GB, free: 13.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3328/0.8035, allocations: 46.08 MB / 0.5703 GB, free: 103.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/14.08, allocations: 17.94 kB / 0.5703 GB, free: 103.5 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches