Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",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.001485/0.001485, allocations: 110.3 kB / 16.63 MB, free: 6.812 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.001713/0.001713, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009995/0.0009995, allocations: 44.38 kB / 300.2 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08847, allocations: 49.45 MB / 349.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01264/0.1011, allocations: 11.78 MB / 361.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008151/0.1093, allocations: 3.922 MB / 365.4 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.111, allocations: 71.69 kB / 365.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.113, allocations: 0.7729 MB / 366.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002503/0.1155, allocations: 0.8549 MB / 367.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.1166, allocations: 0.4956 MB / 367.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1564/0.273, allocations: 3.382 MB / 371 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00377/0.2768, allocations: 3.088 MB / 374.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002042/0.2788, allocations: 1.587 MB / 375.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002497/0.2813, allocations: 2.073 MB / 377.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006338/0.282, allocations: 435.6 kB / 378.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000966/0.283, allocations: 0.5343 MB / 378.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.2841, allocations: 1.265 MB / 379.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001802/0.2859, allocations: 1.938 MB / 381.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005016/0.2909, allocations: 5.603 MB / 387.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2909, allocations: 1.188 kB / 387.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2909, allocations: 0 / 387.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.404e-05/0.291, allocations: 0 / 387.5 MB, free: 6.574 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007259/0.2983, allocations: 3.933 MB / 391.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.2983, allocations: 9.438 kB / 391.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004921/0.2988, allocations: 429.6 kB / 391.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.2999, allocations: 404.9 kB / 392.2 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/0.3029, allocations: 2.076 MB / 394.3 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.3031, allocations: 228.5 kB / 394.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003821/0.3035, allocations: 297.5 kB / 394.8 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005754/0.3093, allocations: 3.85 MB / 398.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.589e-05/0.3094, allocations: 12.75 kB / 398.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002857/0.3096, allocations: 115 kB / 398.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/0.3098, allocations: 150.9 kB / 399 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00519/0.315, allocations: 3.254 MB / 402.2 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01787/0.3329, allocations: 12.15 MB / 414.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002345/0.3352, allocations: 1.944 MB / 416.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001799/0.3371, allocations: 1.164 MB / 417.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002997/0.3374, allocations: 207 kB / 417.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.3374, allocations: 47.88 kB / 417.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 4.208e-06/0.3374, allocations: 0 / 417.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01375/0.3512, allocations: 7.013 MB / 424.7 MB, free: 6.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.3513, allocations: 64.72 kB / 424.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/0.3547, allocations: 2.032 MB / 426.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001791/0.3549, allocations: 50.25 kB / 426.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009774/0.3559, allocations: 1.463 MB / 428.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004536/0.3563, allocations: 0.5296 MB / 428.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005701/0.3569, allocations: 355.2 kB / 429.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.78e-05/0.357, allocations: 305.1 kB / 429.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001359/0.3584, allocations: 0.8867 MB / 430.4 MB, free: 316 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.3601, allocations: 1.446 MB / 431.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003268/0.3634, allocations: 2.505 MB / 434.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/0.3634, allocations: 6.719 kB / 434.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005011/0.3684, allocations: 3.005 MB / 437.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.3685, allocations: 12 kB / 437.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.017e-05/0.3685, allocations: 20 kB / 437.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008963/0.3694, allocations: 394.8 kB / 437.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001668/0.3711, allocations: 472.5 kB / 438.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006022/0.3771, allocations: 6.703 MB / 444.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.3792, allocations: 131.8 kB / 445.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003438/0.3796, allocations: 87.98 kB / 445.2 MB, free: 0.8516 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001838/0.3815, allocations: 0.9272 MB / 446.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005953/0.3821, allocations: 225.2 kB / 446.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004506/0.3866, allocations: 2.592 MB / 448.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.3866, allocations: 20 kB / 448.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.3866, allocations: 4 kB / 448.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/0.3866, allocations: 7.969 kB / 448.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/0.3979, allocations: 5.864 MB / 454.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.3979, allocations: 12.03 kB / 454.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.3992, allocations: 289 kB / 455.1 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.4002, allocations: 410.1 kB / 455.5 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.4004, allocations: 39.98 kB / 455.5 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00727/0.4077, allocations: 8.254 MB / 463.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.4077, allocations: 7.672 kB / 463.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005922/0.4136, allocations: 3.838 MB / 467.6 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.4149, allocations: 486.3 kB / 468.1 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007167/0.4157, allocations: 39.98 kB / 468.1 MB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.4172, allocations: 95.83 kB / 468.2 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002786/0.4175, allocations: 116.2 kB / 468.3 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.4176, allocations: 44 kB / 468.4 MB, free: 8.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002611/0.4203, allocations: 1.39 MB / 469.8 MB, free: 7.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4203, allocations: 0 / 469.8 MB, free: 7.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002564/0.4229, allocations: 0.5625 MB / 470.3 MB, free: 6.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.006431/0.4293, allocations: 4.489 MB / 474.8 MB, free: 2.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006274/0.4356, allocations: 3.549 MB / 478.4 MB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.4356, allocations: 448 / 478.4 MB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002131/0.4378, allocations: 1.574 MB / 480 MB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/0.4412, allocations: 0.545 MB / 480.5 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04331/0.4845, allocations: 25.92 MB / 0.4946 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002228/0.4868, allocations: 2.255 MB / 0.4968 GB, free: 14.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00172/0.4885, allocations: 0.5259 MB / 0.4973 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00159/0.4901, allocations: 1.187 MB / 0.4984 GB, free: 12.79 MB / 430.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4901, allocations: 0 / 0.4984 GB, free: 12.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.057/2.547, allocations: 53.18 MB / 0.5504 GB, free: 149.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/2.547, allocations: 265.2 kB / 0.5506 GB, free: 149.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.236/5.782, allocations: 6.812 kB / 0.5506 GB, free: 149.5 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches