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.001508/0.001509, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001702/0.001702, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 227.4 MB / 246.4 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 60.53 kB / 306.6 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0841/0.08527, allocations: 50.53 MB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1454/0.2307, allocations: 15.58 MB / 372.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006939/0.2377, allocations: 5.26 MB / 377.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001297/0.239, allocations: 96.22 kB / 378 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.241, allocations: 0.952 MB / 379 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002193/0.2432, allocations: 1.101 MB / 380.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.2447, allocations: 0.8578 MB / 381 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002969/0.2476, allocations: 3.726 MB / 384.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.2505, allocations: 3.316 MB / 388 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001747/0.2523, allocations: 1.677 MB / 389.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.254, allocations: 2.056 MB / 391.7 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004883/0.2545, allocations: 481.6 kB / 392.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.2556, allocations: 0.7154 MB / 392.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006458/0.2562, allocations: 1.136 MB / 394 MB, free: 2.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.2575, allocations: 2.049 MB / 396.1 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003983/0.2615, allocations: 6.238 MB / 402.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2615, allocations: 0 / 402.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2615, allocations: 0 / 402.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.158e-05/0.2616, allocations: 0 / 402.3 MB, free: 12.97 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.007182/0.2688, allocations: 4.261 MB / 406.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.2688, allocations: 8.031 kB / 406.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004698/0.2693, allocations: 453.3 kB / 407 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002455/0.2718, allocations: 0.6242 MB / 407.7 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002895/0.2747, allocations: 2.206 MB / 409.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.2748, allocations: 242 kB / 410.1 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000369/0.2752, allocations: 315.8 kB / 410.4 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00538/0.2806, allocations: 4.052 MB / 414.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.39e-05/0.2807, allocations: 15.78 kB / 414.5 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.2809, allocations: 127.9 kB / 414.6 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.281, allocations: 146.2 kB / 414.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004582/0.2856, allocations: 3.39 MB / 418.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.3011, allocations: 13.49 MB / 431.6 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003848/0.305, allocations: 4.269 MB / 435.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.3065, allocations: 1.034 MB / 436.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003864/0.3104, allocations: 2.864 MB / 439.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.3104, allocations: 47.55 kB / 439.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.294e-06/0.3104, allocations: 0 / 439.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01006/0.3205, allocations: 5.984 MB / 445.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.3206, allocations: 64.72 kB / 445.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/0.3229, allocations: 1.905 MB / 447.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.654e-05/0.323, allocations: 53.7 kB / 447.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008791/0.3239, allocations: 1.518 MB / 449.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003259/0.3242, allocations: 491.3 kB / 449.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004451/0.3247, allocations: 339.2 kB / 450.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.446e-05/0.3248, allocations: 301.1 kB / 450.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.3258, allocations: 0.7691 MB / 451.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.3273, allocations: 1.379 MB / 452.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002643/0.3299, allocations: 2.316 MB / 454.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/0.3299, allocations: 4 kB / 454.9 MB, free: 7.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003467/0.3334, allocations: 2.477 MB / 457.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.3335, allocations: 16 kB / 457.4 MB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/0.3335, allocations: 19.94 kB / 457.5 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003035/0.3338, allocations: 126.8 kB / 457.6 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.3354, allocations: 483.2 kB / 458.1 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009204/0.3363, allocations: 1.406 MB / 459.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.3375, allocations: 119.9 kB / 459.6 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.3377, allocations: 83.98 kB / 459.7 MB, free: 2.703 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.001281/0.339, allocations: 0.9812 MB / 460.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.3393, allocations: 201.5 kB / 460.8 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/0.3422, allocations: 1.977 MB / 462.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.3422, allocations: 12 kB / 462.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.3422, allocations: 4 kB / 462.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.3422, allocations: 7.922 kB / 462.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006637/0.3489, allocations: 5.003 MB / 467.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3489, allocations: 0 / 467.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.3501, allocations: 307.5 kB / 468.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002817/0.3504, allocations: 98.56 kB / 468.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.752e-05/0.3505, allocations: 35.98 kB / 468.3 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007627/0.3513, allocations: 1.375 MB / 469.6 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3513, allocations: 7.938 kB / 469.7 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003798/0.3551, allocations: 3.085 MB / 472.7 MB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006658/0.3558, allocations: 454.4 kB / 473.2 MB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/0.356, allocations: 28 kB / 473.2 MB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008853/0.3569, allocations: 79.89 kB / 473.3 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.3571, allocations: 93.08 kB / 473.4 MB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/0.3572, allocations: 36.05 kB / 473.4 MB, free: 4.621 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00159/0.3588, allocations: 1.301 MB / 474.7 MB, free: 3.297 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3588, allocations: 4 kB / 474.7 MB, free: 3.293 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001354/0.3601, allocations: 0.539 MB / 475.3 MB, free: 2.754 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.004289/0.3644, allocations: 3.71 MB / 479 MB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005286/0.3697, allocations: 2.829 MB / 481.8 MB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3697, allocations: 0 / 481.8 MB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.3713, allocations: 1.178 MB / 483 MB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0033/0.3746, allocations: 0.5324 MB / 483.5 MB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03646/0.4111, allocations: 23.68 MB / 0.4953 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002059/0.4132, allocations: 2.264 MB / 0.4975 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001669/0.4149, allocations: 0.5133 MB / 0.498 GB, free: 13.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/0.4164, allocations: 1.187 MB / 0.4992 GB, free: 12.71 MB / 430.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4164, allocations: 0 / 0.4992 GB, free: 12.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4285/0.8449, allocations: 48.76 MB / 0.5468 GB, free: 146.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.8451, allocations: 279.4 kB / 0.5471 GB, free: 146 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.128/3.973, allocations: 3.375 kB / 0.5471 GB, free: 146 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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