Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001861/0.001861, allocations: 122.7 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002147/0.002147, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 63.89 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1028, allocations: 53.32 MB / 426.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.2017/0.3045, allocations: 10.4 MB / 437.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005844/0.3103, allocations: 3.492 MB / 440.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.3119, allocations: 62.28 kB / 440.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.314, allocations: 0.829 MB / 441.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002994/0.317, allocations: 0.8686 MB / 442.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.3181, allocations: 434.4 kB / 442.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003389/0.3215, allocations: 2.76 MB / 445.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002363/0.3239, allocations: 1.724 MB / 447.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002338/0.3262, allocations: 1.275 MB / 448.5 MB, free: 264 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.329, allocations: 1.622 MB / 450.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006733/0.3297, allocations: 333.6 kB / 450.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00127/0.3309, allocations: 449.5 kB / 450.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001203/0.3321, allocations: 0.946 MB / 451.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002647/0.3348, allocations: 1.509 MB / 453.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006173/0.341, allocations: 4.412 MB / 457.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.341, allocations: 1.719 kB / 457.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.341, allocations: 4 kB / 457.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001547/0.3411, allocations: 0 / 457.8 MB, free: 11.73 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.007967/0.3491, allocations: 3.135 MB / 460.9 MB, free: 9.539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.3491, allocations: 9.031 kB / 460.9 MB, free: 9.539 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005366/0.3497, allocations: 326.7 kB / 461.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.3507, allocations: 335.7 kB / 461.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003388/0.3541, allocations: 1.635 MB / 463.2 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001603/0.3542, allocations: 175.4 kB / 463.4 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003557/0.3546, allocations: 218.9 kB / 463.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005368/0.36, allocations: 2.916 MB / 466.5 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-05/0.36, allocations: 15.33 kB / 466.5 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000214/0.3602, allocations: 86.59 kB / 466.6 MB, free: 5.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/0.3604, allocations: 111.8 kB / 466.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00463/0.365, allocations: 2.435 MB / 469.1 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01642/0.3814, allocations: 9.043 MB / 478.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.384, allocations: 1.634 MB / 479.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/0.3858, allocations: 0.9174 MB / 480.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003202/0.3861, allocations: 208.2 kB / 480.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.3861, allocations: 47.56 kB / 481 MB, free: 10.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.925e-06/0.3861, allocations: 0 / 481 MB, free: 10.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01627/0.4024, allocations: 6.59 MB / 487.6 MB, free: 3.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.4025, allocations: 68.39 kB / 487.6 MB, free: 3.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002608/0.4051, allocations: 1.566 MB / 489.2 MB, free: 1.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.4052, allocations: 41.7 kB / 489.2 MB, free: 1.801 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009417/0.4061, allocations: 1.142 MB / 490.4 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/0.4066, allocations: 456.1 kB / 490.8 MB, free: 200 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004843/0.4071, allocations: 279.5 kB / 491.1 MB, free: 15.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4072, allocations: 301.1 kB / 491.4 MB, free: 15.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.4085, allocations: 0.7095 MB / 492.1 MB, free: 14.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.4101, allocations: 1.142 MB / 493.3 MB, free: 13.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002981/0.4131, allocations: 1.967 MB / 495.2 MB, free: 11.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.4131, allocations: 4 kB / 495.2 MB, free: 11.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004778/0.4179, allocations: 2.527 MB / 497.7 MB, free: 8.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.4179, allocations: 8 kB / 497.8 MB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.803e-05/0.4179, allocations: 16 kB / 497.8 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.419, allocations: 416 kB / 498.2 MB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.4204, allocations: 355.4 kB / 498.5 MB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008416/0.4288, allocations: 7.119 MB / 0.4938 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.4304, allocations: 107.9 kB / 0.4939 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002346/0.4307, allocations: 63.98 kB / 0.494 GB, free: 392 kB / 398.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.00167/0.4323, allocations: 0.7198 MB / 0.4947 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005893/0.4329, allocations: 182.8 kB / 0.4948 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.4375, allocations: 2.194 MB / 0.497 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.4375, allocations: 12 kB / 0.497 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.4375, allocations: 4 kB / 0.497 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.4375, allocations: 11.91 kB / 0.497 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.448, allocations: 4.756 MB / 0.5016 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.448, allocations: 8.406 kB / 0.5017 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.449, allocations: 223.7 kB / 0.5019 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.4503, allocations: 456.3 kB / 0.5023 GB, free: 7.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.4504, allocations: 39.97 kB / 0.5023 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009811/0.4602, allocations: 8.693 MB / 0.5108 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.208e-06/0.4602, allocations: 7.938 kB / 0.5108 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005917/0.4661, allocations: 3.219 MB / 0.514 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.4674, allocations: 409 kB / 0.5144 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005244/0.4679, allocations: 31.98 kB / 0.5144 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.4691, allocations: 79.91 kB / 0.5145 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/0.4694, allocations: 104.7 kB / 0.5146 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.4695, allocations: 39.98 kB / 0.5146 GB, free: 10.35 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002199/0.4717, allocations: 1.071 MB / 0.5157 GB, free: 9.281 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4717, allocations: 0 / 0.5157 GB, free: 9.281 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002169/0.4739, allocations: 492.1 kB / 0.5161 GB, free: 8.801 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.006402/0.4803, allocations: 3.854 MB / 0.5199 GB, free: 4.844 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004295/0.4846, allocations: 2.219 MB / 0.5221 GB, free: 2.559 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.4846, allocations: 0 / 0.5221 GB, free: 2.559 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00271/0.4873, allocations: 1.422 MB / 0.5235 GB, free: 1.086 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/0.4902, allocations: 497.4 kB / 0.5239 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03497/0.5252, allocations: 17.92 MB / 0.5414 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002336/0.5275, allocations: 1.871 MB / 0.5433 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0015/0.529, allocations: 394.8 kB / 0.5436 GB, free: 11.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/0.5305, allocations: 0.878 MB / 0.5445 GB, free: 10.79 MB / 462.1 MB Notification: Performance of SimCode: time 1.373e-06/0.5305, allocations: 0 / 0.5445 GB, free: 10.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/0.6404, allocations: 45.59 MB / 0.589 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.84, allocations: 7.875 kB / 0.589 GB, free: 13.56 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 18.80007534008473]