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.001549/0.001549, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001843/0.001843, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.459/1.459, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.002459/0.002459, allocations: 48.08 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1115, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.1928/0.3044, allocations: 10.41 MB / 436.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005741/0.3101, allocations: 3.491 MB / 440.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.3116, allocations: 78.09 kB / 440.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002169/0.3138, allocations: 0.8294 MB / 441.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002942/0.3167, allocations: 0.8762 MB / 442 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.3178, allocations: 430.7 kB / 442.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003452/0.3212, allocations: 2.765 MB / 445.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00223/0.3235, allocations: 1.72 MB / 446.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002119/0.3256, allocations: 1.298 MB / 448.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003178/0.3288, allocations: 1.613 MB / 449.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008318/0.3296, allocations: 335.2 kB / 450.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.3309, allocations: 446.9 kB / 450.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.332, allocations: 0.9553 MB / 451.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002471/0.3345, allocations: 1.509 MB / 453 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005917/0.3404, allocations: 4.405 MB / 457.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3404, allocations: 0 / 457.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3404, allocations: 5.438 kB / 457.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001369/0.3406, allocations: 0 / 457.5 MB, free: 11.43 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.007868/0.3484, allocations: 3.14 MB / 460.6 MB, free: 9.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3485, allocations: 8.812 kB / 460.6 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005442/0.349, allocations: 323.4 kB / 460.9 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.3501, allocations: 332 kB / 461.2 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.3533, allocations: 1.641 MB / 462.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.3535, allocations: 170.9 kB / 463.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003794/0.3539, allocations: 224 kB / 463.3 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005501/0.3594, allocations: 2.916 MB / 466.2 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.025e-05/0.3594, allocations: 7 kB / 466.2 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002288/0.3597, allocations: 95.05 kB / 466.3 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.3598, allocations: 112.5 kB / 466.4 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004757/0.3645, allocations: 2.43 MB / 468.8 MB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01642/0.381, allocations: 9.031 MB / 477.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.3836, allocations: 1.637 MB / 479.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.3854, allocations: 0.9182 MB / 480.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003185/0.3858, allocations: 203.2 kB / 480.6 MB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/0.3858, allocations: 51.55 kB / 480.7 MB, free: 9.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.705e-06/0.3858, allocations: 0 / 480.7 MB, free: 9.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01617/0.402, allocations: 6.594 MB / 487.3 MB, free: 3.176 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.402, allocations: 65.44 kB / 487.3 MB, free: 3.102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002782/0.4048, allocations: 1.573 MB / 488.9 MB, free: 1.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.4049, allocations: 41.7 kB / 488.9 MB, free: 1.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009751/0.4059, allocations: 1.134 MB / 490.1 MB, free: 332 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004824/0.4064, allocations: 456.3 kB / 490.5 MB, free: 15.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004996/0.4069, allocations: 279.5 kB / 490.8 MB, free: 15.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.407, allocations: 301.1 kB / 491.1 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.4084, allocations: 0.7105 MB / 491.8 MB, free: 14.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.41, allocations: 1.134 MB / 492.9 MB, free: 13.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003113/0.4131, allocations: 1.975 MB / 494.9 MB, free: 11.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.4131, allocations: 4 kB / 494.9 MB, free: 11.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004796/0.4179, allocations: 2.527 MB / 497.4 MB, free: 8.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.418, allocations: 14.19 kB / 497.4 MB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.418, allocations: 12 kB / 497.5 MB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.419, allocations: 425.4 kB / 497.9 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/0.4205, allocations: 351.4 kB / 498.2 MB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008191/0.4286, allocations: 7.128 MB / 0.4935 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/0.4303, allocations: 103.8 kB / 0.4936 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/0.4305, allocations: 67.94 kB / 0.4937 GB, free: 48 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.001441/0.4319, allocations: 0.716 MB / 0.4944 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004306/0.4323, allocations: 178.9 kB / 0.4945 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004337/0.4367, allocations: 2.19 MB / 0.4967 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.4367, allocations: 12 kB / 0.4967 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/0.4367, allocations: 9.062 kB / 0.4967 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.4367, allocations: 11.91 kB / 0.4967 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009142/0.4459, allocations: 4.759 MB / 0.5014 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.4459, allocations: 4 kB / 0.5014 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.4469, allocations: 228.1 kB / 0.5016 GB, free: 7.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001313/0.4482, allocations: 455.8 kB / 0.502 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.4483, allocations: 31.98 kB / 0.502 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009651/0.458, allocations: 8.698 MB / 0.5105 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/0.458, allocations: 8 kB / 0.5105 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005868/0.4639, allocations: 3.219 MB / 0.5137 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/0.4649, allocations: 407.8 kB / 0.5141 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002798/0.4652, allocations: 28 kB / 0.5141 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009802/0.4662, allocations: 83.91 kB / 0.5142 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002693/0.4665, allocations: 104.7 kB / 0.5143 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-05/0.4665, allocations: 39.98 kB / 0.5143 GB, free: 10.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001811/0.4684, allocations: 1.071 MB / 0.5154 GB, free: 8.953 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4684, allocations: 0 / 0.5154 GB, free: 8.953 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001939/0.4703, allocations: 487.9 kB / 0.5158 GB, free: 8.477 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.006186/0.4765, allocations: 3.855 MB / 0.5196 GB, free: 4.516 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004103/0.4806, allocations: 2.219 MB / 0.5218 GB, free: 2.238 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4806, allocations: 0.875 kB / 0.5218 GB, free: 2.238 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002617/0.4832, allocations: 1.426 MB / 0.5232 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002438/0.4856, allocations: 489.8 kB / 0.5236 GB, free: 304 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03135/0.517, allocations: 17.93 MB / 0.5411 GB, free: 13.63 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/0.5189, allocations: 1.867 MB / 0.543 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001304/0.5202, allocations: 390.8 kB / 0.5433 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/0.5215, allocations: 0.8781 MB / 0.5442 GB, free: 10.46 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5215, allocations: 0 / 0.5442 GB, free: 10.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1066/0.6281, allocations: 45.61 MB / 0.5887 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.52, allocations: 7.688 kB / 0.5887 GB, free: 13.27 MB / 0.4981 GB " [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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.274192962795496]