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.001699/0.001699, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002094/0.002094, allocations: 208 kB / 24.53 MB, free: 4.07 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.42/1.42, allocations: 230.5 MB / 258.2 MB, free: 8.027 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 55.91 kB / 378.6 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2289, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01264/0.2415, allocations: 10.45 MB / 442.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00658/0.2481, allocations: 3.509 MB / 445.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001356/0.2495, allocations: 75.5 kB / 446 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002039/0.2515, allocations: 0.827 MB / 446.8 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002611/0.2541, allocations: 0.8971 MB / 447.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.2552, allocations: 443.2 kB / 448.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003596/0.2588, allocations: 2.759 MB / 450.9 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.2608, allocations: 1.36 MB / 452.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.2627, allocations: 1.301 MB / 453.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.2654, allocations: 1.623 MB / 455.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006412/0.266, allocations: 332 kB / 455.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009966/0.267, allocations: 451.8 kB / 456 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.2681, allocations: 0.9465 MB / 456.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00191/0.27, allocations: 1.517 MB / 458.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005193/0.2752, allocations: 4.402 MB / 462.8 MB, free: 7.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2752, allocations: 0 / 462.8 MB, free: 7.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2752, allocations: 0 / 462.8 MB, free: 7.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.9e-05/0.2753, allocations: 0 / 462.8 MB, free: 7.641 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.007049/0.2823, allocations: 3.072 MB / 465.9 MB, free: 4.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.2824, allocations: 12.03 kB / 465.9 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.926e-05/0.2825, allocations: 56.61 kB / 466 MB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004695/0.2829, allocations: 325 kB / 466.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009491/0.2839, allocations: 327 kB / 466.6 MB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/0.287, allocations: 1.558 MB / 468.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.2871, allocations: 172.4 kB / 468.3 MB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003735/0.2875, allocations: 220 kB / 468.6 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005136/0.2926, allocations: 2.921 MB / 471.5 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.868e-05/0.2927, allocations: 4 kB / 471.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/0.2929, allocations: 92 kB / 471.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/0.293, allocations: 112.3 kB / 471.7 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004677/0.2977, allocations: 2.43 MB / 474.1 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01489/0.3126, allocations: 8.876 MB / 483 MB, free: 3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/0.3148, allocations: 1.181 MB / 484.2 MB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/0.3166, allocations: 0.9177 MB / 485.1 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002303/0.3169, allocations: 53.5 kB / 485.1 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/0.3169, allocations: 47.5 kB / 485.2 MB, free: 0.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.966e-06/0.3169, allocations: 0 / 485.2 MB, free: 0.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01451/0.3314, allocations: 6.074 MB / 491.3 MB, free: 10.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.3315, allocations: 64.41 kB / 491.3 MB, free: 10.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00237/0.3338, allocations: 1.577 MB / 492.9 MB, free: 9.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.334, allocations: 45.7 kB / 492.9 MB, free: 8.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.3351, allocations: 1.138 MB / 494.1 MB, free: 7.824 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004749/0.3356, allocations: 452.2 kB / 494.5 MB, free: 7.379 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004692/0.336, allocations: 271.5 kB / 494.8 MB, free: 7.105 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3362, allocations: 305.1 kB / 495.1 MB, free: 6.805 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.3374, allocations: 0.7144 MB / 495.8 MB, free: 6.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.339, allocations: 1.138 MB / 496.9 MB, free: 4.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00291/0.3419, allocations: 1.963 MB / 498.9 MB, free: 2.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/0.3419, allocations: 7.938 kB / 498.9 MB, free: 2.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004469/0.3464, allocations: 2.44 MB / 0.4896 GB, free: 156 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.3464, allocations: 12 kB / 0.4896 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.3464, allocations: 12.28 kB / 0.4896 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.3475, allocations: 431 kB / 0.49 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.3489, allocations: 347.5 kB / 0.4904 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007602/0.3565, allocations: 6.82 MB / 0.497 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.358, allocations: 119.7 kB / 0.4971 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.3582, allocations: 63.98 kB / 0.4972 GB, free: 8.02 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.001286/0.3594, allocations: 0.7084 MB / 0.4979 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003688/0.3598, allocations: 182.9 kB / 0.4981 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004073/0.3639, allocations: 2.111 MB / 0.5001 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.3639, allocations: 12 kB / 0.5001 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.3639, allocations: 11.94 kB / 0.5002 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.3639, allocations: 7.969 kB / 0.5002 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008899/0.3728, allocations: 4.668 MB / 0.5047 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.056e-06/0.3728, allocations: 0 / 0.5047 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.3739, allocations: 219.7 kB / 0.5049 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.3751, allocations: 455.3 kB / 0.5054 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.3752, allocations: 35.98 kB / 0.5054 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008914/0.3841, allocations: 8.271 MB / 0.5135 GB, free: 6.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.3842, allocations: 7.938 kB / 0.5135 GB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00548/0.3896, allocations: 3.14 MB / 0.5165 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009167/0.3906, allocations: 330.8 kB / 0.5169 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.3908, allocations: 32 kB / 0.5169 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009452/0.3918, allocations: 87.89 kB / 0.517 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.392, allocations: 100.8 kB / 0.5171 GB, free: 2.969 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.608e-05/0.3921, allocations: 36 kB / 0.5171 GB, free: 2.934 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001671/0.3938, allocations: 1.074 MB / 0.5182 GB, free: 1.863 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3938, allocations: 0 / 0.5182 GB, free: 1.863 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001715/0.3955, allocations: 488 kB / 0.5186 GB, free: 1.387 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.005845/0.4013, allocations: 3.792 MB / 0.5223 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003984/0.4053, allocations: 2.151 MB / 0.5244 GB, free: 11.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4053, allocations: 3.938 kB / 0.5244 GB, free: 11.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/0.4079, allocations: 1.423 MB / 0.5258 GB, free: 9.836 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002334/0.4102, allocations: 481.4 kB / 0.5263 GB, free: 9.379 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2146/0.6248, allocations: 17.78 MB / 0.5436 GB, free: 99.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.626, allocations: 1.87 MB / 0.5455 GB, free: 98.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.627, allocations: 393.5 kB / 0.5458 GB, free: 98.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009046/0.6279, allocations: 0.8756 MB / 0.5467 GB, free: 97.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6279, allocations: 3.844 kB / 0.5467 GB, free: 97.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1155/0.7435, allocations: 46.82 MB / 0.5924 GB, free: 55.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.52, allocations: 11.2 kB / 0.5924 GB, free: 55.77 MB / 446.1 MB " [Timeout remaining time 644] (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/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_trunk_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: 22.327621214964893]