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.001114/0.001114, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001128/0.001128, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.339/1.339, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009529/0.000953, allocations: 47.73 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08068/0.08165, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01252/0.09421, allocations: 11.88 MB / 362.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006655/0.1009, allocations: 3.988 MB / 366 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001495/0.1024, allocations: 79.62 kB / 366.1 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001945/0.1044, allocations: 0.8769 MB / 367 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002304/0.1067, allocations: 0.9668 MB / 368 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.1077, allocations: 0.55 MB / 368.5 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1477/0.2555, allocations: 3.382 MB / 371.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004142/0.2597, allocations: 3.1 MB / 375 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002278/0.262, allocations: 1.572 MB / 376.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002687/0.2647, allocations: 2.043 MB / 378.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007305/0.2654, allocations: 436.1 kB / 379 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001076/0.2665, allocations: 0.5346 MB / 379.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.2676, allocations: 1.263 MB / 380.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001727/0.2693, allocations: 1.937 MB / 382.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00435/0.2737, allocations: 5.599 MB / 388.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2737, allocations: 0 / 388.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2737, allocations: 0 / 388.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001093/0.2738, allocations: 1.125 kB / 388.4 MB, free: 6.512 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.007015/0.2808, allocations: 3.936 MB / 392.3 MB, free: 3.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.2809, allocations: 9.625 kB / 392.3 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004962/0.2814, allocations: 427.1 kB / 392.7 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.2824, allocations: 400.4 kB / 393.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003009/0.2855, allocations: 2.075 MB / 395.2 MB, free: 1.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.2856, allocations: 231.1 kB / 395.4 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003423/0.286, allocations: 297.5 kB / 395.7 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005285/0.2913, allocations: 3.848 MB / 399.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.84e-05/0.2914, allocations: 10.75 kB / 399.6 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002721/0.2916, allocations: 118.2 kB / 399.7 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.2918, allocations: 150.2 kB / 399.8 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005439/0.2972, allocations: 3.252 MB / 403.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.316, allocations: 12.16 MB / 415.2 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.3185, allocations: 1.944 MB / 417.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001847/0.3203, allocations: 1.16 MB / 418.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000283/0.3206, allocations: 209.9 kB / 418.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.3207, allocations: 51.81 kB / 418.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.246e-06/0.3207, allocations: 0 / 418.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01277/0.3335, allocations: 7.002 MB / 425.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.3335, allocations: 68.72 kB / 425.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002667/0.3362, allocations: 2.035 MB / 427.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.3363, allocations: 53.7 kB / 427.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009048/0.3372, allocations: 1.462 MB / 429.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/0.3376, allocations: 0.5285 MB / 429.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005159/0.3381, allocations: 351.2 kB / 430.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.3382, allocations: 305.1 kB / 430.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.3395, allocations: 0.8784 MB / 431.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.3411, allocations: 1.451 MB / 432.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003201/0.3443, allocations: 2.503 MB / 435.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.3443, allocations: 8 kB / 435.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004664/0.349, allocations: 3.012 MB / 438.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.349, allocations: 12 kB / 438.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.3491, allocations: 16 kB / 438.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008581/0.3499, allocations: 395.6 kB / 438.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/0.3516, allocations: 474.7 kB / 439.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006162/0.3578, allocations: 6.699 MB / 445.8 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.3597, allocations: 139.8 kB / 446 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/0.3599, allocations: 79.98 kB / 446 MB, free: 184 kB / 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.002082/0.362, allocations: 0.9302 MB / 447 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/0.3626, allocations: 221.3 kB / 447.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004261/0.3668, allocations: 2.592 MB / 449.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.3669, allocations: 16 kB / 449.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.3669, allocations: 4 kB / 449.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.3669, allocations: 7.969 kB / 449.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009464/0.3764, allocations: 5.854 MB / 455.7 MB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.3764, allocations: 8 kB / 455.7 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.3776, allocations: 294.8 kB / 456 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009479/0.3786, allocations: 410.2 kB / 456.4 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.3787, allocations: 44.08 kB / 456.4 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006828/0.3855, allocations: 8.262 MB / 464.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3856, allocations: 7 kB / 464.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005687/0.3913, allocations: 3.838 MB / 468.5 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.3923, allocations: 486.3 kB / 469 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/0.3926, allocations: 43.98 kB / 469 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.3938, allocations: 91.83 kB / 469.1 MB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.394, allocations: 108.6 kB / 469.2 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.583e-05/0.3941, allocations: 48 kB / 469.3 MB, free: 8.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00202/0.3961, allocations: 1.39 MB / 470.7 MB, free: 6.859 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3961, allocations: 0 / 470.7 MB, free: 6.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00208/0.3982, allocations: 0.5664 MB / 471.2 MB, free: 6.293 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.005865/0.4041, allocations: 4.493 MB / 475.7 MB, free: 1.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006001/0.4101, allocations: 3.548 MB / 479.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.4101, allocations: 4 kB / 479.3 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002022/0.4122, allocations: 1.565 MB / 480.8 MB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002832/0.415, allocations: 0.558 MB / 481.4 MB, free: 12.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03237/0.4474, allocations: 24.7 MB / 0.4942 GB, free: 1.383 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001924/0.4494, allocations: 2.251 MB / 0.4964 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00164/0.451, allocations: 0.5337 MB / 0.4969 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001494/0.4525, allocations: 1.194 MB / 0.4981 GB, free: 13.38 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4525, allocations: 0 / 0.4981 GB, free: 13.38 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2918/0.7443, allocations: 53.27 MB / 0.5501 GB, free: 149.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/13.19, allocations: 6.031 kB / 0.5501 GB, free: 149.7 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