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.001173/0.001173, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 61.03 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08368/0.08489, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01115/0.09609, allocations: 9.659 MB / 367.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005813/0.1019, allocations: 3.166 MB / 370.4 MB, free: 1.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.1033, allocations: 63.75 kB / 370.5 MB, free: 1.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.1052, allocations: 0.6674 MB / 371.1 MB, free: 364 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1617/0.2669, allocations: 0.7622 MB / 371.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001038/0.2679, allocations: 392.4 kB / 372.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003849/0.2718, allocations: 2.536 MB / 374.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002781/0.2746, allocations: 2.329 MB / 377.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.2762, allocations: 1.191 MB / 378.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001679/0.2779, allocations: 1.503 MB / 379.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004701/0.2784, allocations: 317 kB / 380.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008562/0.2793, allocations: 421.3 kB / 380.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008339/0.2801, allocations: 0.9006 MB / 381.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.2815, allocations: 1.423 MB / 382.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00362/0.2851, allocations: 4.106 MB / 387 MB, free: 6.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2851, allocations: 1.25 kB / 387 MB, free: 6.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2852, allocations: 3.938 kB / 387 MB, free: 6.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.349e-05/0.2852, allocations: 0 / 387 MB, free: 6.625 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.005454/0.2907, allocations: 2.914 MB / 389.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2907, allocations: 10.19 kB / 389.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003617/0.2911, allocations: 308.5 kB / 390.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008094/0.2919, allocations: 293.2 kB / 390.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.2942, allocations: 1.488 MB / 392 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.2943, allocations: 174 kB / 392.2 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002943/0.2946, allocations: 212.4 kB / 392.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004114/0.2987, allocations: 2.796 MB / 395.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.074e-05/0.2988, allocations: 14.39 kB / 395.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001895/0.299, allocations: 85.75 kB / 395.3 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.482e-05/0.2991, allocations: 108.8 kB / 395.4 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003471/0.3026, allocations: 2.344 MB / 397.7 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01419/0.3168, allocations: 8.599 MB / 406.3 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002457/0.3193, allocations: 1.708 MB / 408 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.321, allocations: 0.9713 MB / 409 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002935/0.3213, allocations: 206.2 kB / 409.2 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.3214, allocations: 43.56 kB / 409.2 MB, free: 5.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.855e-06/0.3214, allocations: 0 / 409.2 MB, free: 5.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01322/0.3346, allocations: 6.235 MB / 415.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.3347, allocations: 68.34 kB / 415.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.3367, allocations: 1.441 MB / 417 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-05/0.3368, allocations: 49.7 kB / 417 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000684/0.3375, allocations: 1.044 MB / 418.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003/0.3378, allocations: 407.6 kB / 418.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004015/0.3382, allocations: 251.4 kB / 418.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.3383, allocations: 361.9 kB / 419.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.3395, allocations: 0.6909 MB / 419.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.3408, allocations: 1.07 MB / 420.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002545/0.3434, allocations: 1.868 MB / 422.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.3434, allocations: 4 kB / 422.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003918/0.3473, allocations: 2.417 MB / 425.1 MB, free: 4.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.3473, allocations: 10.81 kB / 425.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3474, allocations: 12 kB / 425.1 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009323/0.3483, allocations: 423.2 kB / 425.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.3495, allocations: 327.5 kB / 425.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006508/0.356, allocations: 7.05 MB / 432.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.3574, allocations: 103.8 kB / 433 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.3575, allocations: 55.94 kB / 433.1 MB, free: 12.39 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.00119/0.3587, allocations: 0.6963 MB / 433.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/0.359, allocations: 158 kB / 433.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003701/0.3627, allocations: 2.13 MB / 436.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3628, allocations: 12 kB / 436.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.3628, allocations: 4 kB / 436.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.3628, allocations: 3.984 kB / 436.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007795/0.3706, allocations: 4.601 MB / 440.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.3707, allocations: 4 kB / 440.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009211/0.3716, allocations: 207.7 kB / 440.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.3728, allocations: 447.3 kB / 441.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.3729, allocations: 35.98 kB / 441.4 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008294/0.3812, allocations: 8.625 MB / 450 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.3813, allocations: 4 kB / 450 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005395/0.3867, allocations: 3.108 MB / 453.1 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009325/0.3876, allocations: 379 kB / 453.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000426/0.3881, allocations: 35.98 kB / 453.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.3892, allocations: 79.91 kB / 453.6 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/0.3894, allocations: 96.75 kB / 453.7 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-05/0.3895, allocations: 39.98 kB / 453.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001653/0.3912, allocations: 0.9849 MB / 454.7 MB, free: 5.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3912, allocations: 4 kB / 454.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001871/0.3931, allocations: 468.1 kB / 455.2 MB, free: 5.488 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.005376/0.3985, allocations: 3.736 MB / 458.9 MB, free: 1.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004861/0.4033, allocations: 2.7 MB / 461.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.4034, allocations: 4 kB / 461.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002345/0.4057, allocations: 1.439 MB / 463 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.408, allocations: 428.7 kB / 463.5 MB, free: 13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02622/0.4343, allocations: 18.34 MB / 481.8 MB, free: 9.496 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001598/0.4359, allocations: 1.807 MB / 483.6 MB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001122/0.437, allocations: 369.6 kB / 484 MB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/0.4381, allocations: 0.8195 MB / 484.8 MB, free: 6.473 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4381, allocations: 0 / 484.8 MB, free: 6.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08005/0.5182, allocations: 41.1 MB / 0.5136 GB, free: 13.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.793/10.31, allocations: 7.875 kB / 0.5136 GB, free: 13.76 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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