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.001301/0.001301, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001515/0.001515, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.435/1.435, allocations: 230.6 MB / 257.5 MB, free: 8.012 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 47.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2708, allocations: 53.37 MB / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01329/0.2841, allocations: 10.44 MB / 441.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007374/0.2915, allocations: 3.501 MB / 445.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002232/0.2937, allocations: 75.5 kB / 445.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002421/0.2961, allocations: 0.8387 MB / 446 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003307/0.2994, allocations: 0.8893 MB / 446.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.3007, allocations: 439.2 kB / 447.3 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004357/0.305, allocations: 2.765 MB / 450.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.3075, allocations: 1.36 MB / 451.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00233/0.3098, allocations: 1.301 MB / 452.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/0.3128, allocations: 1.619 MB / 454.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007551/0.3135, allocations: 336 kB / 454.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.3147, allocations: 447.8 kB / 455.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001095/0.3158, allocations: 0.9544 MB / 456.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00215/0.318, allocations: 1.509 MB / 457.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005938/0.3239, allocations: 4.406 MB / 462 MB, free: 7.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3239, allocations: 3.938 kB / 462 MB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3239, allocations: 0 / 462 MB, free: 7.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001347/0.324, allocations: 0 / 462 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.007946/0.332, allocations: 3.069 MB / 465.1 MB, free: 4.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.332, allocations: 8.031 kB / 465.1 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004652/0.3325, allocations: 325 kB / 465.4 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008995/0.3334, allocations: 327 kB / 465.7 MB, free: 4.043 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.3366, allocations: 1.566 MB / 467.3 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.3368, allocations: 164.4 kB / 467.5 MB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000342/0.3371, allocations: 224 kB / 467.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005078/0.3422, allocations: 2.913 MB / 470.6 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.213e-05/0.3422, allocations: 11.97 kB / 470.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001974/0.3424, allocations: 91.98 kB / 470.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.3426, allocations: 116.3 kB / 470.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004373/0.3469, allocations: 2.43 MB / 473.2 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01529/0.3622, allocations: 8.864 MB / 482.1 MB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.3645, allocations: 1.189 MB / 483.3 MB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/0.3662, allocations: 0.921 MB / 484.2 MB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002368/0.3665, allocations: 48.95 kB / 484.3 MB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.3665, allocations: 43.56 kB / 484.3 MB, free: 1.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.685e-06/0.3665, allocations: 0 / 484.3 MB, free: 1.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01415/0.3807, allocations: 6.076 MB / 490.4 MB, free: 10.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.3807, allocations: 64.41 kB / 490.4 MB, free: 10.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002465/0.3832, allocations: 1.573 MB / 492 MB, free: 9.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.3833, allocations: 45.7 kB / 492.1 MB, free: 9.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009357/0.3842, allocations: 1.142 MB / 493.2 MB, free: 8.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003975/0.3846, allocations: 456.2 kB / 493.6 MB, free: 7.621 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004336/0.3851, allocations: 271.5 kB / 493.9 MB, free: 7.348 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.3852, allocations: 305.1 kB / 494.2 MB, free: 7.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.3864, allocations: 0.7105 MB / 494.9 MB, free: 6.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.388, allocations: 1.138 MB / 496.1 MB, free: 5.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.391, allocations: 1.967 MB / 498 MB, free: 2.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.391, allocations: 4 kB / 498 MB, free: 2.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004575/0.3955, allocations: 2.444 MB / 0.4887 GB, free: 400 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.3956, allocations: 14.34 kB / 0.4887 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.3956, allocations: 12.28 kB / 0.4888 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.3966, allocations: 423 kB / 0.4892 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.3979, allocations: 359.4 kB / 0.4895 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007617/0.4055, allocations: 6.816 MB / 0.4962 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.407, allocations: 115.8 kB / 0.4963 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.4072, allocations: 63.94 kB / 0.4963 GB, free: 8.262 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.00141/0.4086, allocations: 0.7162 MB / 0.497 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003777/0.4089, allocations: 174.9 kB / 0.4972 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.4129, allocations: 2.119 MB / 0.4993 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.4129, allocations: 12 kB / 0.4993 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/0.4129, allocations: 11.94 kB / 0.4993 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.4129, allocations: 7.969 kB / 0.4993 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009063/0.422, allocations: 4.66 MB / 0.5039 GB, free: 416 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.422, allocations: 4 kB / 0.5039 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009946/0.423, allocations: 219.7 kB / 0.5041 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.4242, allocations: 450.3 kB / 0.5045 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.4244, allocations: 39.98 kB / 0.5045 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009287/0.4337, allocations: 8.273 MB / 0.5126 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.4337, allocations: 4 kB / 0.5126 GB, free: 6.961 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005694/0.4394, allocations: 3.14 MB / 0.5157 GB, free: 3.746 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/0.4405, allocations: 330.8 kB / 0.516 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004411/0.4409, allocations: 32 kB / 0.516 GB, free: 3.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.442, allocations: 83.91 kB / 0.5161 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002684/0.4423, allocations: 100.7 kB / 0.5162 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.942e-05/0.4424, allocations: 47.98 kB / 0.5162 GB, free: 3.164 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002125/0.4445, allocations: 1.067 MB / 0.5173 GB, free: 2.102 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4445, allocations: 4 kB / 0.5173 GB, free: 2.098 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002035/0.4465, allocations: 484 kB / 0.5178 GB, free: 1.625 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.006244/0.4528, allocations: 3.787 MB / 0.5215 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004217/0.457, allocations: 2.147 MB / 0.5236 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/0.457, allocations: 4 kB / 0.5236 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002661/0.4597, allocations: 1.427 MB / 0.5249 GB, free: 10.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/0.4625, allocations: 477.7 kB / 0.5254 GB, free: 9.621 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2314/0.6939, allocations: 17.79 MB / 0.5428 GB, free: 98.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/0.6951, allocations: 1.865 MB / 0.5446 GB, free: 97.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001047/0.6962, allocations: 391.5 kB / 0.545 GB, free: 97.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008507/0.697, allocations: 0.879 MB / 0.5458 GB, free: 96.39 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.697, allocations: 0 / 0.5458 GB, free: 96.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08762/0.7846, allocations: 46.81 MB / 0.5915 GB, free: 54.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.67, allocations: 3.984 kB / 0.5915 GB, free: 54.13 MB / 446.1 MB " [Timeout remaining time 644] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.321443177061155]