Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",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.001128/0.001128, allocations: 87.94 kB / 16.65 MB, free: 6.172 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.001408/0.001408, allocations: 180.9 kB / 17.56 MB, free: 5.852 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.418/1.418, allocations: 223.3 MB / 241.6 MB, free: 184 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.0002701, allocations: 8 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.08897, allocations: 50.42 MB / 352 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007997/0.097, allocations: 8.438 MB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004807/0.1018, allocations: 3.1 MB / 363.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006752/0.1025, allocations: 39.81 kB / 363.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.1038, allocations: 0.5867 MB / 364.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001455/0.1052, allocations: 0.6333 MB / 364.8 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005661/0.1058, allocations: 283.6 kB / 365 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001956/0.1078, allocations: 2.425 MB / 367.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.1091, allocations: 1.18 MB / 368.6 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008626/0.1099, allocations: 0.7116 MB / 369.3 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.1111, allocations: 0.9841 MB / 370.3 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.1112, allocations: 100 kB / 370.4 MB, free: 1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004226/0.1117, allocations: 211.7 kB / 370.6 MB, free: 0.793 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004849/0.1122, allocations: 0.5333 MB / 371.2 MB, free: 264 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1789/0.2911, allocations: 0.9359 MB / 372.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005124/0.2962, allocations: 2.91 MB / 375 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.2963, allocations: 1.469 kB / 375 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2963, allocations: 0 / 375 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.164e-05/0.2964, allocations: 0 / 375 MB, free: 11.52 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004022/0.3004, allocations: 1.929 MB / 376.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.3005, allocations: 9.688 kB / 377 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000302/0.3008, allocations: 234.8 kB / 377.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006069/0.3014, allocations: 229.2 kB / 377.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/0.3032, allocations: 1.182 MB / 378.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-05/0.3032, allocations: 120 kB / 378.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002135/0.3035, allocations: 152.9 kB / 378.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003264/0.3067, allocations: 2.002 MB / 380.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.008e-05/0.3068, allocations: 12.91 kB / 380.9 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.3069, allocations: 66.17 kB / 380.9 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.15e-05/0.307, allocations: 75.27 kB / 381 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002533/0.3096, allocations: 1.653 MB / 382.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008153/0.3177, allocations: 6.963 MB / 389.6 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.3185, allocations: 451.8 kB / 390.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.3188, allocations: 263.8 kB / 390.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001862/0.319, allocations: 116.5 kB / 390.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.3191, allocations: 37.78 kB / 390.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.174e-06/0.3191, allocations: 0 / 390.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.006501/0.3256, allocations: 3.299 MB / 393.8 MB, free: 3.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001812/0.3274, allocations: 2.182 MB / 396 MB, free: 1.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.3295, allocations: 1.617 MB / 397.6 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.3295, allocations: 33.7 kB / 397.6 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004987/0.33, allocations: 1.017 MB / 398.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.3302, allocations: 241 kB / 398.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.3304, allocations: 131.1 kB / 399 MB, free: 15.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.041e-05/0.3305, allocations: 301.1 kB / 399.3 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007413/0.3312, allocations: 0.5197 MB / 399.8 MB, free: 15.03 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.3325, allocations: 1.464 MB / 401.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.3345, allocations: 2.139 MB / 403.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.3345, allocations: 13.86 kB / 403.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003171/0.3377, allocations: 2.156 MB / 405.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.3378, allocations: 20 kB / 405.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.231e-05/0.3378, allocations: 32 kB / 405.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005145/0.3383, allocations: 234.8 kB / 405.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.3394, allocations: 394.5 kB / 406.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/0.3409, allocations: 1.718 MB / 408 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.3423, allocations: 131.4 kB / 408.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.3424, allocations: 95.98 kB / 408.2 MB, free: 7.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009663/0.3434, allocations: 0.5939 MB / 408.8 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.3436, allocations: 154.1 kB / 408.9 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.3454, allocations: 1.106 MB / 410 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3455, allocations: 4 kB / 410 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.3455, allocations: 7.938 kB / 410 MB, free: 6.125 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.3455, allocations: 7.984 kB / 410 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004953/0.3504, allocations: 3.392 MB / 413.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.3505, allocations: 8 kB / 413.4 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004004/0.3509, allocations: 108.8 kB / 413.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005912/0.3515, allocations: 227 kB / 413.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.694e-05/0.3515, allocations: 27.97 kB / 413.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003353/0.3549, allocations: 3.691 MB / 417.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001812/0.3567, allocations: 2.014 MB / 419.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.3593, allocations: 1.745 MB / 421.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005993/0.3599, allocations: 315.1 kB / 421.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.3601, allocations: 16 kB / 421.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006709/0.3608, allocations: 56 kB / 421.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.3609, allocations: 62.98 kB / 421.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.3609, allocations: 27.19 kB / 421.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001565/0.3625, allocations: 1.078 MB / 422.8 MB, free: 8.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3625, allocations: 0 / 422.8 MB, free: 8.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001593/0.3641, allocations: 376 kB / 423.2 MB, free: 8.438 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00275/0.3669, allocations: 2.367 MB / 425.5 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002366/0.3693, allocations: 1.604 MB / 427.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3693, allocations: 0 / 427.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.3705, allocations: 0.8493 MB / 428 MB, free: 3.551 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003182/0.3737, allocations: 376.5 kB / 428.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02851/0.4022, allocations: 17.36 MB / 445.7 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/0.4036, allocations: 1.465 MB / 447.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001207/0.4048, allocations: 354 kB / 447.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008803/0.4057, allocations: 0.6203 MB / 448.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4057, allocations: 0 / 448.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8622/1.268, allocations: 34.26 MB / 482.4 MB, free: 11.84 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002457/1.268, allocations: 257.1 kB / 482.7 MB, free: 11.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.07/4.338, allocations: 4.062 kB / 482.7 MB, free: 11.54 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches