Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002208/0.002208, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002703/0.002703, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.364/1.364, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 39.94 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2652, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01236/0.2775, allocations: 10.47 MB / 442.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006885/0.2844, allocations: 3.493 MB / 445.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002005/0.2864, allocations: 75.5 kB / 446 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.2888, allocations: 0.8348 MB / 446.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00293/0.2917, allocations: 0.897 MB / 447.7 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.2928, allocations: 439.2 kB / 448.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003354/0.2961, allocations: 2.766 MB / 450.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00178/0.2979, allocations: 1.352 MB / 452.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00177/0.2997, allocations: 1.293 MB / 453.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002139/0.3018, allocations: 1.619 MB / 455.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004396/0.3023, allocations: 336 kB / 455.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007556/0.303, allocations: 459.8 kB / 455.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008923/0.3039, allocations: 0.9465 MB / 456.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.3054, allocations: 1.513 MB / 458.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004552/0.3099, allocations: 4.403 MB / 462.8 MB, free: 7.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3099, allocations: 4 kB / 462.8 MB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3099, allocations: 0 / 462.8 MB, free: 7.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.786e-05/0.31, allocations: 0 / 462.8 MB, free: 7.816 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006279/0.3163, allocations: 3.065 MB / 465.9 MB, free: 4.703 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.3164, allocations: 12.03 kB / 465.9 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.004e-05/0.3164, allocations: 56.61 kB / 465.9 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000408/0.3168, allocations: 325 kB / 466.2 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008542/0.3177, allocations: 335 kB / 466.6 MB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.3205, allocations: 1.554 MB / 468.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.3206, allocations: 172.4 kB / 468.3 MB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000321/0.3209, allocations: 223.9 kB / 468.5 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004606/0.3255, allocations: 2.917 MB / 471.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.795e-05/0.3256, allocations: 3.938 kB / 471.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/0.3258, allocations: 91.98 kB / 471.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/0.3259, allocations: 112.3 kB / 471.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004229/0.3302, allocations: 2.441 MB / 474.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01422/0.3444, allocations: 8.868 MB / 482.9 MB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/0.3466, allocations: 1.185 MB / 484.1 MB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/0.3483, allocations: 0.9171 MB / 485 MB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.3485, allocations: 52.94 kB / 485.1 MB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.3485, allocations: 47.56 kB / 485.1 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.556e-06/0.3485, allocations: 0 / 485.1 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01418/0.3627, allocations: 6.08 MB / 491.2 MB, free: 10.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.3628, allocations: 68.34 kB / 491.3 MB, free: 10.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/0.3654, allocations: 1.566 MB / 492.9 MB, free: 9.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.3655, allocations: 45.7 kB / 492.9 MB, free: 9.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008662/0.3664, allocations: 1.142 MB / 494 MB, free: 8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.3668, allocations: 456.2 kB / 494.5 MB, free: 7.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004302/0.3672, allocations: 267.5 kB / 494.8 MB, free: 7.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.3673, allocations: 305.1 kB / 495.1 MB, free: 6.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.3685, allocations: 0.7105 MB / 495.8 MB, free: 6.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/0.37, allocations: 1.134 MB / 496.9 MB, free: 4.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.3728, allocations: 1.971 MB / 498.9 MB, free: 2.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.3728, allocations: 7.938 kB / 498.9 MB, free: 2.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004526/0.3773, allocations: 2.44 MB / 0.4896 GB, free: 332 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.3774, allocations: 12 kB / 0.4896 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.81e-05/0.3774, allocations: 12 kB / 0.4896 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.3785, allocations: 426.4 kB / 0.49 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.3798, allocations: 359.4 kB / 0.4903 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00747/0.3872, allocations: 6.809 MB / 0.497 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.3887, allocations: 111.8 kB / 0.4971 GB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002249/0.3889, allocations: 67.98 kB / 0.4972 GB, free: 8.199 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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 {(3,12,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.001406/0.3904, allocations: 0.7201 MB / 0.4979 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004577/0.3908, allocations: 178.9 kB / 0.498 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00403/0.3948, allocations: 2.111 MB / 0.5001 GB, free: 5.156 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.3949, allocations: 15.98 kB / 0.5001 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.3949, allocations: 7.938 kB / 0.5001 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.3949, allocations: 3.984 kB / 0.5001 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008637/0.4035, allocations: 4.66 MB / 0.5047 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.4035, allocations: 4 kB / 0.5047 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009417/0.4045, allocations: 227.6 kB / 0.5049 GB, free: 124 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.4057, allocations: 454.4 kB / 0.5053 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.4058, allocations: 35.98 kB / 0.5054 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008692/0.4145, allocations: 8.273 MB / 0.5134 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.4145, allocations: 4 kB / 0.5134 GB, free: 6.895 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005782/0.4203, allocations: 3.144 MB / 0.5165 GB, free: 3.676 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/0.4213, allocations: 326.8 kB / 0.5168 GB, free: 3.355 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004278/0.4217, allocations: 35.98 kB / 0.5169 GB, free: 3.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.4228, allocations: 83.91 kB / 0.5169 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/0.4231, allocations: 104.7 kB / 0.517 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.745e-05/0.4232, allocations: 39.98 kB / 0.5171 GB, free: 3.098 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001888/0.4251, allocations: 1.071 MB / 0.5181 GB, free: 2.031 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4251, allocations: 0 / 0.5181 GB, free: 2.031 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001902/0.427, allocations: 487.9 kB / 0.5186 GB, free: 1.555 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * 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 {(3,12,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.005887/0.4329, allocations: 3.784 MB / 0.5223 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00411/0.437, allocations: 2.148 MB / 0.5244 GB, free: 11.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.437, allocations: 4.062 kB / 0.5244 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002514/0.4395, allocations: 1.426 MB / 0.5258 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00279/0.4423, allocations: 487 kB / 0.5262 GB, free: 9.547 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2287/0.6709, allocations: 17.78 MB / 0.5436 GB, free: 97.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.6721, allocations: 1.865 MB / 0.5454 GB, free: 96.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009946/0.673, allocations: 393.7 kB / 0.5458 GB, free: 96.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008208/0.6739, allocations: 0.8781 MB / 0.5467 GB, free: 95.67 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6739, allocations: 3.844 kB / 0.5467 GB, free: 95.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07955/0.7534, allocations: 46.82 MB / 0.5924 GB, free: 53.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/15.27, allocations: 13.61 kB / 0.5924 GB, free: 53.91 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.908679280953947]