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.001588/0.001588, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 71.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2348, allocations: 50.55 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01173/0.2465, allocations: 9.668 MB / 418.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005877/0.2524, allocations: 3.146 MB / 421.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.254, allocations: 55.75 kB / 421.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.2558, allocations: 0.6714 MB / 422.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002456/0.2583, allocations: 0.7764 MB / 423.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000915/0.2592, allocations: 387.5 kB / 423.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003142/0.2624, allocations: 2.568 MB / 426.1 MB, free: 136 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00283/0.2652, allocations: 2.322 MB / 428.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001758/0.267, allocations: 1.188 MB / 429.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002192/0.2692, allocations: 1.502 MB / 431.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005736/0.2698, allocations: 316 kB / 431.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009408/0.2707, allocations: 423.8 kB / 431.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009508/0.2717, allocations: 0.9038 MB / 432.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001846/0.2736, allocations: 1.419 MB / 434.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00513/0.2787, allocations: 4.173 MB / 438.3 MB, free: 3.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2787, allocations: 3.938 kB / 438.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2787, allocations: 0 / 438.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.2789, allocations: 4 kB / 438.3 MB, free: 3.797 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.006692/0.2855, allocations: 2.98 MB / 441.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2856, allocations: 8.031 kB / 441.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004515/0.2861, allocations: 312.2 kB / 441.6 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008507/0.2869, allocations: 307.2 kB / 441.9 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002818/0.2898, allocations: 1.551 MB / 443.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.2899, allocations: 160.1 kB / 443.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000347/0.2903, allocations: 219.9 kB / 443.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0051/0.2954, allocations: 2.796 MB / 446.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.187e-05/0.2955, allocations: 7.984 kB / 446.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002155/0.2957, allocations: 87.98 kB / 446.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.2958, allocations: 112.1 kB / 446.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004411/0.3002, allocations: 2.343 MB / 449.2 MB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01427/0.3145, allocations: 8.529 MB / 457.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/0.3172, allocations: 1.698 MB / 459.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.3191, allocations: 0.9596 MB / 460.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.3194, allocations: 195.2 kB / 460.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.683e-05/0.3195, allocations: 55.42 kB / 460.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.347e-06/0.3195, allocations: 0 / 460.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01413/0.3336, allocations: 6.271 MB / 466.9 MB, free: 6.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.3337, allocations: 68.34 kB / 467 MB, free: 6.332 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.336, allocations: 1.445 MB / 468.4 MB, free: 4.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.3361, allocations: 45.7 kB / 468.5 MB, free: 4.824 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008619/0.337, allocations: 1.067 MB / 469.5 MB, free: 3.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003915/0.3374, allocations: 432.3 kB / 470 MB, free: 3.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000456/0.3378, allocations: 263.5 kB / 470.2 MB, free: 3.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.338, allocations: 361.9 kB / 470.6 MB, free: 2.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.3393, allocations: 0.6909 MB / 471.3 MB, free: 2.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.3408, allocations: 1.07 MB / 472.3 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.3437, allocations: 1.868 MB / 474.2 MB, free: 14.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/0.3437, allocations: 0 / 474.2 MB, free: 14.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004443/0.3482, allocations: 2.426 MB / 476.6 MB, free: 12.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.3482, allocations: 12.25 kB / 476.6 MB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.3483, allocations: 19.94 kB / 476.6 MB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.3493, allocations: 403.1 kB / 477 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.3506, allocations: 335.5 kB / 477.4 MB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007945/0.3586, allocations: 7.03 MB / 484.4 MB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.36, allocations: 107.8 kB / 484.5 MB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.3602, allocations: 60 kB / 484.6 MB, free: 3.902 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.001273/0.3614, allocations: 0.6924 MB / 485.3 MB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003567/0.3618, allocations: 174.9 kB / 485.4 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004069/0.3659, allocations: 2.127 MB / 487.6 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.3659, allocations: 15.98 kB / 487.6 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.3659, allocations: 4 kB / 487.6 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.3659, allocations: 7.984 kB / 487.6 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008153/0.3741, allocations: 4.568 MB / 492.1 MB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.3741, allocations: 4 kB / 492.2 MB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009191/0.3751, allocations: 211.7 kB / 492.4 MB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/0.3763, allocations: 454.4 kB / 492.8 MB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.914e-05/0.3764, allocations: 35.92 kB / 492.8 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009057/0.3855, allocations: 8.628 MB / 0.4897 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/0.3855, allocations: 11.88 kB / 0.4897 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005416/0.3909, allocations: 3.104 MB / 0.4928 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008069/0.3918, allocations: 387.9 kB / 0.4931 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002443/0.392, allocations: 35.92 kB / 0.4932 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008888/0.3929, allocations: 79.91 kB / 0.4932 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.3932, allocations: 96.75 kB / 0.4933 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-05/0.3933, allocations: 35.98 kB / 0.4934 GB, free: 14.39 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001575/0.3949, allocations: 0.9927 MB / 0.4943 GB, free: 13.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3949, allocations: 0 / 0.4943 GB, free: 13.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001593/0.3965, allocations: 459.9 kB / 0.4948 GB, free: 12.95 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.005758/0.4023, allocations: 3.75 MB / 0.4984 GB, free: 9.105 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00398/0.4063, allocations: 2.236 MB / 0.5006 GB, free: 6.809 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.4063, allocations: 0 / 0.5006 GB, free: 6.809 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002467/0.4088, allocations: 1.451 MB / 0.502 GB, free: 5.305 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.411, allocations: 423.4 kB / 0.5024 GB, free: 4.902 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0276/0.4386, allocations: 16.92 MB / 0.519 GB, free: 3.285 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001733/0.4404, allocations: 1.807 MB / 0.5207 GB, free: 1.445 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001121/0.4415, allocations: 365.6 kB / 0.5211 GB, free: 1.082 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/0.4426, allocations: 0.8156 MB / 0.5219 GB, free: 272 kB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4427, allocations: 0 / 0.5219 GB, free: 272 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8015/1.244, allocations: 41.92 MB / 0.5628 GB, free: 110.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/15.04, allocations: 11.31 kB / 0.5628 GB, free: 110.3 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.1.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