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.001412/0.001412, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.001759, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 58.66 kB / 307.1 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07692/0.07821, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01023/0.08849, allocations: 9.655 MB / 367.2 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004987/0.0935, allocations: 3.174 MB / 370.4 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.09457, allocations: 55.75 kB / 370.5 MB, free: 1.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.09622, allocations: 0.679 MB / 371.2 MB, free: 344 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1446/0.2408, allocations: 0.7549 MB / 371.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008873/0.2417, allocations: 395.2 kB / 372.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.2441, allocations: 2.537 MB / 374.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002343/0.2464, allocations: 2.33 MB / 377.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001393/0.2478, allocations: 1.195 MB / 378.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.2493, allocations: 1.493 MB / 379.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004194/0.2497, allocations: 317.7 kB / 380.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008154/0.2505, allocations: 427 kB / 380.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008071/0.2514, allocations: 0.8977 MB / 381.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.2526, allocations: 1.424 MB / 382.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003314/0.256, allocations: 4.103 MB / 387 MB, free: 6.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.256, allocations: 5.375 kB / 387 MB, free: 6.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.256, allocations: 3.938 kB / 387 MB, free: 6.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.471e-05/0.2561, allocations: 0 / 387 MB, free: 6.637 MB / 302.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.005027/0.2611, allocations: 2.912 MB / 389.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.2611, allocations: 9.312 kB / 389.9 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000337/0.2615, allocations: 313 kB / 390.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007548/0.2622, allocations: 292.2 kB / 390.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.2642, allocations: 1.488 MB / 392 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.2644, allocations: 163.5 kB / 392.2 MB, free: 3.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002807/0.2647, allocations: 221.3 kB / 392.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003889/0.2686, allocations: 2.793 MB / 395.2 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.993e-05/0.2686, allocations: 10.64 kB / 395.2 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001903/0.2688, allocations: 92.56 kB / 395.3 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/0.2689, allocations: 107.2 kB / 395.4 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003316/0.2723, allocations: 2.344 MB / 397.7 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/0.2843, allocations: 8.604 MB / 406.3 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.2866, allocations: 1.709 MB / 408 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/0.2883, allocations: 0.9752 MB / 409 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002746/0.2886, allocations: 206.3 kB / 409.2 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.2886, allocations: 43.56 kB / 409.3 MB, free: 5.199 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.615e-06/0.2886, allocations: 0 / 409.3 MB, free: 5.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01277/0.3014, allocations: 6.229 MB / 415.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.3015, allocations: 60.41 kB / 415.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/0.3034, allocations: 1.445 MB / 417 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.933e-05/0.3034, allocations: 45.7 kB / 417 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006995/0.3041, allocations: 1.047 MB / 418.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003/0.3045, allocations: 400.9 kB / 418.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004047/0.3049, allocations: 255.4 kB / 418.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.305, allocations: 363.1 kB / 419.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3062, allocations: 0.6871 MB / 419.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.3076, allocations: 1.073 MB / 420.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002684/0.3103, allocations: 1.867 MB / 422.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.3103, allocations: 4 kB / 422.7 MB, free: 7.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003955/0.3143, allocations: 2.416 MB / 425.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3143, allocations: 15.28 kB / 425.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.3143, allocations: 12 kB / 425.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009322/0.3153, allocations: 426.8 kB / 425.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.3165, allocations: 323.5 kB / 425.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006798/0.3233, allocations: 7.042 MB / 432.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.3244, allocations: 107.7 kB / 433 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.3245, allocations: 55.94 kB / 433.1 MB, free: 12.38 MB / 350.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.0009965/0.3255, allocations: 0.6963 MB / 433.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.3258, allocations: 158 kB / 433.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003623/0.3294, allocations: 2.134 MB / 436.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.3294, allocations: 12 kB / 436.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3294, allocations: 4 kB / 436.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.3294, allocations: 3.984 kB / 436.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007454/0.3369, allocations: 4.598 MB / 440.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.3369, allocations: 4 kB / 440.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009251/0.3379, allocations: 211.7 kB / 440.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.339, allocations: 447.4 kB / 441.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.625e-05/0.3391, allocations: 35.98 kB / 441.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008139/0.3472, allocations: 8.623 MB / 450 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3472, allocations: 0 / 450 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004701/0.352, allocations: 3.109 MB / 453.1 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006687/0.3526, allocations: 375 kB / 453.5 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/0.3529, allocations: 35.98 kB / 453.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009068/0.3538, allocations: 79.91 kB / 453.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.354, allocations: 92.81 kB / 453.7 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-05/0.3541, allocations: 39.98 kB / 453.7 MB, free: 6.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00135/0.3555, allocations: 0.9888 MB / 454.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3555, allocations: 0 / 454.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0015/0.357, allocations: 464.1 kB / 455.2 MB, free: 5.48 MB / 366.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.005083/0.3621, allocations: 3.749 MB / 458.9 MB, free: 1.645 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004545/0.3666, allocations: 2.698 MB / 461.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3667, allocations: 0 / 461.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.3689, allocations: 1.442 MB / 463 MB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.3707, allocations: 425 kB / 463.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0248/0.3955, allocations: 18.35 MB / 481.8 MB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001523/0.3971, allocations: 1.799 MB / 483.6 MB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001051/0.3981, allocations: 373.6 kB / 484 MB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.3992, allocations: 0.8185 MB / 484.8 MB, free: 6.461 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3992, allocations: 3.938 kB / 484.8 MB, free: 6.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07403/0.4732, allocations: 41.09 MB / 0.5136 GB, free: 13.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.812/10.29, allocations: 8 kB / 0.5136 GB, free: 13.75 MB / 446.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