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) 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.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_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.0008829/0.0008828, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001851/0.0001852, allocations: 4 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07289/0.07309, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008889/0.08199, allocations: 9.74 MB / 369.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1417/0.2237, allocations: 3.411 MB / 372.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.2251, allocations: 53.31 kB / 372.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.2267, allocations: 0.6734 MB / 373.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001645/0.2283, allocations: 0.7567 MB / 374 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006254/0.2289, allocations: 372.3 kB / 374.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002489/0.2314, allocations: 3.094 MB / 377.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001885/0.2333, allocations: 2.01 MB / 379.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.2345, allocations: 0.9633 MB / 380.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.2358, allocations: 1.332 MB / 381.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002261/0.2361, allocations: 139.8 kB / 381.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005515/0.2366, allocations: 259 kB / 382.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006101/0.2372, allocations: 0.7048 MB / 382.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.2383, allocations: 1.276 MB / 384.1 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00275/0.241, allocations: 4.109 MB / 388.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.241, allocations: 0 / 388.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.241, allocations: 1.5 kB / 388.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.49e-05/0.2411, allocations: 0 / 388.2 MB, free: 5.688 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.004025/0.2451, allocations: 2.603 MB / 390.8 MB, free: 3.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2451, allocations: 9.656 kB / 390.8 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003322/0.2455, allocations: 329.3 kB / 391.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007286/0.2462, allocations: 322.7 kB / 391.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.2481, allocations: 1.576 MB / 393.1 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.2483, allocations: 180.1 kB / 393.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002778/0.2485, allocations: 217.6 kB / 393.4 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003906/0.2525, allocations: 2.933 MB / 396.4 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.098e-05/0.2525, allocations: 12.44 kB / 396.4 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001759/0.2527, allocations: 96.03 kB / 396.5 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.452e-05/0.2528, allocations: 111 kB / 396.6 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003485/0.2563, allocations: 2.457 MB / 399.1 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/0.2674, allocations: 9.158 MB / 408.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.2695, allocations: 1.728 MB / 409.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001582/0.2711, allocations: 1.003 MB / 410.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002348/0.2713, allocations: 206.6 kB / 411.1 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.2714, allocations: 43.56 kB / 411.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.224e-06/0.2714, allocations: 4 kB / 411.2 MB, free: 3.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01239/0.2838, allocations: 6.705 MB / 417.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.2838, allocations: 68.34 kB / 418 MB, free: 12.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/0.2857, allocations: 1.569 MB / 419.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.95e-05/0.2858, allocations: 53.58 kB / 419.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006522/0.2864, allocations: 1.109 MB / 420.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002806/0.2867, allocations: 428.2 kB / 421.1 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.2869, allocations: 125.6 kB / 421.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 6.894e-05/0.2869, allocations: 301.1 kB / 421.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.288, allocations: 0.7261 MB / 422.3 MB, free: 7.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.2893, allocations: 1.142 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002465/0.2918, allocations: 1.99 MB / 425.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.2918, allocations: 4 kB / 425.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003646/0.2955, allocations: 2.542 MB / 427.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.2955, allocations: 15.94 kB / 427.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.2955, allocations: 12.28 kB / 428 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000863/0.2964, allocations: 422.5 kB / 428.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.2976, allocations: 355.4 kB / 428.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005691/0.3033, allocations: 6.562 MB / 435.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.3043, allocations: 115.8 kB / 435.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.585e-05/0.3044, allocations: 60 kB / 435.5 MB, free: 9.895 MB / 350.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.001001/0.3054, allocations: 0.7229 MB / 436.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002382/0.3057, allocations: 173.8 kB / 436.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003424/0.3091, allocations: 2.217 MB / 438.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.3091, allocations: 12 kB / 438.6 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3091, allocations: 4 kB / 438.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.3092, allocations: 12.06 kB / 438.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006591/0.3158, allocations: 4.817 MB / 443.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3158, allocations: 0 / 443.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008848/0.3167, allocations: 223.7 kB / 443.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.3177, allocations: 470.1 kB / 444.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.234e-05/0.3178, allocations: 31.98 kB / 444.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006604/0.3244, allocations: 7.992 MB / 452.1 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3244, allocations: 8 kB / 452.1 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004371/0.3288, allocations: 3.247 MB / 455.4 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005388/0.3293, allocations: 406.7 kB / 455.8 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/0.3296, allocations: 28 kB / 455.8 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008646/0.3304, allocations: 95.89 kB / 455.9 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.3306, allocations: 100.8 kB / 456 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.327e-05/0.3307, allocations: 39.98 kB / 456 MB, free: 4.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00134/0.3321, allocations: 1.071 MB / 457.1 MB, free: 3.445 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3321, allocations: 0 / 457.1 MB, free: 3.445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001425/0.3335, allocations: 488 kB / 457.6 MB, free: 2.969 MB / 366.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.00486/0.3384, allocations: 3.9 MB / 461.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003176/0.3416, allocations: 2.303 MB / 463.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3416, allocations: 0 / 463.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.3437, allocations: 1.489 MB / 465.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.3463, allocations: 450.5 kB / 465.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02889/0.3752, allocations: 20.78 MB / 486.5 MB, free: 4.383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/0.3767, allocations: 1.871 MB / 488.3 MB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001074/0.3778, allocations: 386.9 kB / 488.7 MB, free: 2.094 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009973/0.3788, allocations: 0.8781 MB / 489.6 MB, free: 1.219 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3788, allocations: 0 / 489.6 MB, free: 1.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05855/0.4373, allocations: 42.48 MB / 0.5196 GB, free: 7.168 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/0.4375, allocations: 247.5 kB / 0.5199 GB, free: 6.914 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/2.832, allocations: 0 / 0.5199 GB, free: 6.914 MB / 446.1 MB (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 --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) 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.0.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) Reference file matches