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.000921/0.0009211, allocations: 92.34 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009895/0.0009896, allocations: 201.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002089/0.0002089, allocations: 8 kB / 307.9 MB, free: 0.6758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08902/0.08925, allocations: 51.52 MB / 359.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1714/0.2607, allocations: 14.85 MB / 374.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00843/0.2691, allocations: 5.196 MB / 379.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002309/0.2715, allocations: 96.97 kB / 379.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002643/0.2741, allocations: 0.9409 MB / 380.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003255/0.2774, allocations: 1.096 MB / 381.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.2792, allocations: 0.8659 MB / 382.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004054/0.2832, allocations: 3.783 MB / 386.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002985/0.2863, allocations: 2.759 MB / 389 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00199/0.2883, allocations: 1.235 MB / 390.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002397/0.2907, allocations: 1.648 MB / 391.8 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004277/0.2911, allocations: 190.6 kB / 392 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.2924, allocations: 441.9 kB / 392.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006039/0.293, allocations: 0.7992 MB / 393.3 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.2945, allocations: 1.691 MB / 395 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004449/0.2989, allocations: 5.891 MB / 400.8 MB, free: 15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.299, allocations: 0 / 400.8 MB, free: 15 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.299, allocations: 3.938 kB / 400.8 MB, free: 15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.529e-05/0.2991, allocations: 0 / 400.8 MB, free: 15 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.009887/0.309, allocations: 3.606 MB / 404.5 MB, free: 12.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.309, allocations: 11.19 kB / 404.5 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00163/0.3107, allocations: 450.5 kB / 404.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003816/0.3145, allocations: 0.6352 MB / 405.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0052/0.3198, allocations: 2.201 MB / 407.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004008/0.3202, allocations: 245.6 kB / 408 MB, free: 9.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001204/0.3214, allocations: 319.9 kB / 408.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009018/0.3305, allocations: 4.044 MB / 412.3 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-05/0.3306, allocations: 11.91 kB / 412.3 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.3309, allocations: 126.7 kB / 412.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.331, allocations: 154.2 kB / 412.6 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005489/0.3365, allocations: 3.39 MB / 416 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/0.3538, allocations: 13.54 MB / 429.6 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004002/0.3578, allocations: 4.285 MB / 433.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.3594, allocations: 1.047 MB / 434.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003942/0.3634, allocations: 2.861 MB / 437.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3634, allocations: 47.55 kB / 437.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.164e-06/0.3634, allocations: 0 / 437.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01028/0.3737, allocations: 5.992 MB / 443.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.3738, allocations: 68.72 kB / 443.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.3762, allocations: 1.902 MB / 445.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.698e-05/0.3763, allocations: 49.7 kB / 445.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009821/0.3773, allocations: 1.516 MB / 447.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003624/0.3777, allocations: 0.4912 MB / 447.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.3779, allocations: 137.6 kB / 447.9 MB, free: 368 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.378, allocations: 305.1 kB / 448.2 MB, free: 60 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3791, allocations: 0.773 MB / 449 MB, free: 15.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.3806, allocations: 1.379 MB / 450.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002811/0.3834, allocations: 2.32 MB / 452.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.3835, allocations: 15.88 kB / 452.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00362/0.3871, allocations: 2.47 MB / 455.2 MB, free: 8.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.3871, allocations: 15.98 kB / 455.2 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.3871, allocations: 20 kB / 455.2 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003256/0.3875, allocations: 122.4 kB / 455.4 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.3891, allocations: 487.3 kB / 455.8 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009564/0.3901, allocations: 1.319 MB / 457.2 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.3914, allocations: 111.8 kB / 457.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.3915, allocations: 83.98 kB / 457.3 MB, free: 6.254 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.001557/0.3931, allocations: 0.9891 MB / 458.3 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002643/0.3933, allocations: 205.4 kB / 458.5 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002993/0.3963, allocations: 1.966 MB / 460.5 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3964, allocations: 15.98 kB / 460.5 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3964, allocations: 7.938 kB / 460.5 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.3964, allocations: 3.984 kB / 460.5 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006717/0.4031, allocations: 5.002 MB / 465.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.4031, allocations: 0 / 465.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.4044, allocations: 315.8 kB / 465.8 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002715/0.4046, allocations: 94.47 kB / 465.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.489e-05/0.4047, allocations: 31.98 kB / 466 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008287/0.4056, allocations: 1.272 MB / 467.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4056, allocations: 4 kB / 467.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004058/0.4096, allocations: 3.085 MB / 470.3 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007465/0.4104, allocations: 466.3 kB / 470.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002246/0.4106, allocations: 43.86 kB / 470.8 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008847/0.4115, allocations: 79.91 kB / 470.9 MB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.4117, allocations: 93.19 kB / 471 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.094e-05/0.4118, allocations: 36 kB / 471 MB, free: 8.258 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001759/0.4135, allocations: 1.297 MB / 472.3 MB, free: 6.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4135, allocations: 0 / 472.3 MB, free: 6.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00161/0.4152, allocations: 0.5468 MB / 472.9 MB, free: 6.391 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.004499/0.4197, allocations: 3.709 MB / 476.6 MB, free: 2.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003075/0.4228, allocations: 2.216 MB / 478.8 MB, free: 356 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4228, allocations: 4 kB / 478.8 MB, free: 352 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.4242, allocations: 1.179 MB / 480 MB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.4269, allocations: 0.5017 MB / 480.5 MB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03412/0.461, allocations: 23.77 MB / 0.4924 GB, free: 4.891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/0.4631, allocations: 2.267 MB / 0.4946 GB, free: 2.586 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001606/0.4647, allocations: 0.5133 MB / 0.4951 GB, free: 2.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00142/0.4662, allocations: 1.183 MB / 0.4963 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4662, allocations: 0 / 0.4963 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2131/0.6792, allocations: 47.18 MB / 0.5424 GB, free: 147.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.6794, allocations: 279.4 kB / 0.5426 GB, free: 147.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.556/3.236, allocations: 4 kB / 0.5426 GB, free: 147.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 & /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