Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001485/0.001485, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001778/0.001778, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2332, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01071/0.244, allocations: 9.658 MB / 418.4 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005703/0.2497, allocations: 3.162 MB / 421.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001379/0.2511, allocations: 51.81 kB / 421.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.253, allocations: 0.683 MB / 422.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002471/0.2555, allocations: 0.7609 MB / 423.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.2566, allocations: 399.4 kB / 423.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003082/0.2597, allocations: 2.56 MB / 426 MB, free: 196 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002866/0.2626, allocations: 2.326 MB / 428.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001645/0.2642, allocations: 1.195 MB / 429.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/0.2665, allocations: 1.502 MB / 431.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000682/0.2672, allocations: 316 kB / 431.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.2684, allocations: 423.8 kB / 431.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.2697, allocations: 0.9 MB / 432.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002367/0.2721, allocations: 1.423 MB / 434.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004583/0.2767, allocations: 4.159 MB / 438.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2767, allocations: 0 / 438.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2767, allocations: 0 / 438.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001195/0.2768, allocations: 0 / 438.3 MB, free: 3.867 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.007189/0.284, allocations: 2.912 MB / 441.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.2841, allocations: 8.031 kB / 441.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007523/0.2848, allocations: 316.2 kB / 441.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.286, allocations: 293.7 kB / 441.8 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003314/0.2893, allocations: 1.538 MB / 443.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.2895, allocations: 168.1 kB / 443.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004829/0.29, allocations: 207.9 kB / 443.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005294/0.2953, allocations: 2.799 MB / 446.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.88e-05/0.2954, allocations: 11.91 kB / 446.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002602/0.2956, allocations: 80 kB / 446.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.2957, allocations: 108.2 kB / 446.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004258/0.3, allocations: 2.351 MB / 449 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01428/0.3143, allocations: 8.499 MB / 457.5 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/0.3169, allocations: 1.706 MB / 459.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.3187, allocations: 0.9556 MB / 460.2 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.319, allocations: 207.2 kB / 460.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.319, allocations: 51.5 kB / 460.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.695e-06/0.3191, allocations: 0 / 460.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01319/0.3323, allocations: 6.238 MB / 466.7 MB, free: 6.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.3323, allocations: 64.41 kB / 466.7 MB, free: 6.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/0.3345, allocations: 1.441 MB / 468.2 MB, free: 5.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.3346, allocations: 49.7 kB / 468.2 MB, free: 5.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000717/0.3354, allocations: 1.037 MB / 469.3 MB, free: 3.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003459/0.3357, allocations: 410.1 kB / 469.7 MB, free: 3.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004307/0.3362, allocations: 255.4 kB / 469.9 MB, free: 3.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3363, allocations: 365.9 kB / 470.3 MB, free: 2.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.3375, allocations: 0.6948 MB / 471 MB, free: 2.258 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.3389, allocations: 1.066 MB / 472 MB, free: 1.035 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002593/0.3415, allocations: 1.864 MB / 473.9 MB, free: 15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.3415, allocations: 4 kB / 473.9 MB, free: 15 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004087/0.3456, allocations: 2.417 MB / 476.3 MB, free: 12.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.3456, allocations: 8 kB / 476.3 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.3457, allocations: 15.94 kB / 476.3 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009872/0.3466, allocations: 426.7 kB / 476.8 MB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.3479, allocations: 327.5 kB / 477.1 MB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006762/0.3547, allocations: 7.037 MB / 484.1 MB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.356, allocations: 99.8 kB / 484.2 MB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002043/0.3562, allocations: 56 kB / 484.3 MB, free: 4.164 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001283/0.3575, allocations: 0.6963 MB / 485 MB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004489/0.358, allocations: 158 kB / 485.1 MB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004062/0.3621, allocations: 2.13 MB / 487.3 MB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.3621, allocations: 12 kB / 487.3 MB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.3621, allocations: 4 kB / 487.3 MB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.3621, allocations: 3.984 kB / 487.3 MB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008339/0.3705, allocations: 4.571 MB / 491.8 MB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.3705, allocations: 4 kB / 491.8 MB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009085/0.3714, allocations: 212.1 kB / 492.1 MB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.3726, allocations: 447.1 kB / 492.5 MB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.3727, allocations: 35.98 kB / 492.5 MB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008249/0.381, allocations: 8.632 MB / 0.4894 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.381, allocations: 11.88 kB / 0.4894 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.386, allocations: 3.099 MB / 0.4924 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009398/0.387, allocations: 375 kB / 0.4928 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003241/0.3873, allocations: 31.98 kB / 0.4928 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00099/0.3883, allocations: 87.84 kB / 0.4929 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.3886, allocations: 100.7 kB / 0.493 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.659e-05/0.3886, allocations: 39.98 kB / 0.4931 GB, free: 14.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001562/0.3902, allocations: 0.9888 MB / 0.494 GB, free: 13.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3902, allocations: 0 / 0.494 GB, free: 13.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001615/0.3918, allocations: 460 kB / 0.4945 GB, free: 13.24 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.005252/0.3971, allocations: 3.741 MB / 0.4981 GB, free: 9.402 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00364/0.4008, allocations: 2.233 MB / 0.5003 GB, free: 7.109 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.4008, allocations: 4.188 kB / 0.5003 GB, free: 7.105 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00227/0.4031, allocations: 1.438 MB / 0.5017 GB, free: 5.613 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/0.4052, allocations: 415.4 kB / 0.5021 GB, free: 5.219 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02553/0.4308, allocations: 16.86 MB / 0.5186 GB, free: 3.672 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001629/0.4324, allocations: 1.799 MB / 0.5203 GB, free: 1.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001061/0.4335, allocations: 365.6 kB / 0.5207 GB, free: 1.477 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.4346, allocations: 0.8234 MB / 0.5215 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of SimCode: time 1.904e-06/0.4346, allocations: 0 / 0.5215 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2449/0.6795, allocations: 42.43 MB / 0.5629 GB, free: 110.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.52, allocations: 4 kB / 0.5629 GB, free: 110.2 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches