Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 114.4 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 51.94 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08604/0.08764, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.1855/0.2732, allocations: 10.89 MB / 385.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006465/0.2797, allocations: 3.678 MB / 389.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.2816, allocations: 56.41 kB / 389.3 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.2835, allocations: 0.8201 MB / 390.1 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002487/0.286, allocations: 0.8623 MB / 391 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000976/0.287, allocations: 458.4 kB / 391.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002971/0.29, allocations: 2.956 MB / 394.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002564/0.2926, allocations: 2.685 MB / 397 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.2944, allocations: 1.361 MB / 398.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002407/0.2968, allocations: 1.757 MB / 400.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005694/0.2974, allocations: 373.1 kB / 400.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.2985, allocations: 470.9 kB / 401 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001279/0.2998, allocations: 1.075 MB / 402.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002037/0.3018, allocations: 1.674 MB / 403.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00583/0.3076, allocations: 4.896 MB / 408.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3077, allocations: 0 / 408.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3077, allocations: 0 / 408.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.622e-05/0.3078, allocations: 0 / 408.6 MB, free: 10.89 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.007382/0.3152, allocations: 3.462 MB / 412.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.3152, allocations: 13.27 kB / 412.1 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005307/0.3158, allocations: 368.4 kB / 412.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008763/0.3166, allocations: 357.2 kB / 412.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002829/0.3195, allocations: 1.714 MB / 414.5 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.3196, allocations: 192.4 kB / 414.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003502/0.32, allocations: 250.5 kB / 415 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005429/0.3254, allocations: 3.276 MB / 418.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.814e-05/0.3255, allocations: 15.88 kB / 418.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002412/0.3258, allocations: 104 kB / 418.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.3259, allocations: 128.9 kB / 418.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004629/0.3305, allocations: 2.75 MB / 421.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01567/0.3462, allocations: 10.43 MB / 431.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.3483, allocations: 1.352 MB / 433 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/0.3495, allocations: 0.7423 MB / 433.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003065/0.3498, allocations: 211.2 kB / 434 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.3499, allocations: 43.5 kB / 434 MB, free: 3.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.865e-06/0.3499, allocations: 4 kB / 434 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01599/0.3659, allocations: 7.074 MB / 441.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.366, allocations: 64.41 kB / 441.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00268/0.3687, allocations: 1.797 MB / 442.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.3688, allocations: 45.7 kB / 443 MB, free: 10.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001005/0.3698, allocations: 1.318 MB / 444.3 MB, free: 9.477 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003707/0.3702, allocations: 440.3 kB / 444.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004773/0.3707, allocations: 299.4 kB / 445 MB, free: 8.742 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3708, allocations: 305.1 kB / 445.3 MB, free: 8.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.372, allocations: 0.773 MB / 446.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.3737, allocations: 1.297 MB / 447.4 MB, free: 6.141 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002986/0.3767, allocations: 2.212 MB / 449.6 MB, free: 3.695 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.3767, allocations: 4 kB / 449.6 MB, free: 3.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004154/0.3808, allocations: 2.499 MB / 452.1 MB, free: 1.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.3809, allocations: 12 kB / 452.1 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.3809, allocations: 16 kB / 452.1 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/0.3815, allocations: 235.3 kB / 452.4 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.383, allocations: 423.5 kB / 452.8 MB, free: 500 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002928/0.3859, allocations: 3.23 MB / 456 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.3875, allocations: 135.7 kB / 456.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.3876, allocations: 68 kB / 456.2 MB, free: 12.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.001529/0.3892, allocations: 0.8251 MB / 457 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003774/0.3896, allocations: 202.6 kB / 457.2 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003436/0.393, allocations: 2.027 MB / 459.3 MB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.393, allocations: 12 kB / 459.3 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.393, allocations: 0 / 459.3 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.3931, allocations: 15.91 kB / 459.3 MB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007733/0.4008, allocations: 4.734 MB / 464 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.4008, allocations: 12.03 kB / 464 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.4019, allocations: 259.6 kB / 464.3 MB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005752/0.4025, allocations: 207.2 kB / 464.5 MB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.349e-05/0.4026, allocations: 27.92 kB / 464.5 MB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002981/0.4056, allocations: 3.211 MB / 467.7 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/0.4056, allocations: 11.92 kB / 467.7 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004764/0.4104, allocations: 3.129 MB / 470.9 MB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.4115, allocations: 435.8 kB / 471.3 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.4117, allocations: 27.94 kB / 471.3 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009367/0.4127, allocations: 95.86 kB / 471.4 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.4129, allocations: 72.89 kB / 471.5 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.413, allocations: 32 kB / 471.5 MB, free: 12.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001901/0.4149, allocations: 1.231 MB / 472.7 MB, free: 11.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4149, allocations: 0 / 472.7 MB, free: 11.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001611/0.4165, allocations: 487.9 kB / 473.2 MB, free: 11.26 MB / 398.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 (120): * Single equations (assignments): 116 * 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.005159/0.4217, allocations: 3.776 MB / 477 MB, free: 7.414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003713/0.4254, allocations: 2.35 MB / 479.4 MB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4254, allocations: 0.5 kB / 479.4 MB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001872/0.4273, allocations: 1.335 MB / 480.7 MB, free: 3.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/0.4297, allocations: 497.9 kB / 481.2 MB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/0.4579, allocations: 18.77 MB / 499.9 MB, free: 15.58 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001844/0.4598, allocations: 2.002 MB / 0.4902 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001439/0.4612, allocations: 0.496 MB / 0.4907 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001409/0.4627, allocations: 1.007 MB / 0.4916 GB, free: 12.04 MB / 430.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4627, allocations: 4 kB / 0.4917 GB, free: 12.03 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09705/0.5597, allocations: 45.95 MB / 0.5365 GB, free: 13.96 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.47, allocations: 4.375 kB / 0.5365 GB, free: 13.95 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches