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.001064/0.001064, 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.001166/0.001166, 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.479/1.479, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.59 kB / 307.1 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08419/0.0855, allocations: 50.53 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01211/0.09765, allocations: 10.34 MB / 367.9 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006471/0.1042, allocations: 3.489 MB / 371.4 MB, free: 56 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.1056, allocations: 55.75 kB / 371.5 MB, free: 0 / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002419/0.2565, allocations: 0.7612 MB / 372.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002707/0.2592, allocations: 0.8389 MB / 373.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.2603, allocations: 421.6 kB / 373.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003435/0.2638, allocations: 2.752 MB / 376.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002733/0.2665, allocations: 2.409 MB / 378.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.2687, allocations: 1.263 MB / 379.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002518/0.2712, allocations: 1.582 MB / 381.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006045/0.2718, allocations: 334.4 kB / 381.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001161/0.273, allocations: 444.9 kB / 382.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008763/0.2739, allocations: 0.9401 MB / 383.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001567/0.2755, allocations: 1.507 MB / 384.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004186/0.2797, allocations: 4.337 MB / 389 MB, free: 4.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.2797, allocations: 1.156 kB / 389 MB, free: 4.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2797, allocations: 0 / 389 MB, free: 4.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001402/0.2799, allocations: 4 kB / 389 MB, free: 4.793 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.00571/0.2856, allocations: 3.061 MB / 392.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.2856, allocations: 13.56 kB / 392.1 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003513/0.286, allocations: 328.9 kB / 392.4 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008165/0.2868, allocations: 314.4 kB / 392.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.2892, allocations: 1.58 MB / 394.3 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.2894, allocations: 173.1 kB / 394.5 MB, free: 1.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003154/0.2897, allocations: 219.3 kB / 394.7 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004204/0.2939, allocations: 2.922 MB / 397.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.269e-05/0.294, allocations: 6.906 kB / 397.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002027/0.2942, allocations: 86.94 kB / 397.7 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/0.2943, allocations: 117.2 kB / 397.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003839/0.2981, allocations: 2.434 MB / 400.3 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/0.3118, allocations: 9.115 MB / 409.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002278/0.3142, allocations: 1.704 MB / 411.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001725/0.3159, allocations: 0.9954 MB / 412.1 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000293/0.3162, allocations: 209.8 kB / 412.3 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3163, allocations: 44.03 kB / 412.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.875e-06/0.3163, allocations: 0 / 412.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01417/0.3305, allocations: 6.575 MB / 418.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.3305, allocations: 64.41 kB / 419 MB, free: 10.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.3327, allocations: 1.565 MB / 420.5 MB, free: 9.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-05/0.3328, allocations: 45.7 kB / 420.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006915/0.3335, allocations: 1.118 MB / 421.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.3338, allocations: 426.4 kB / 422.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004043/0.3342, allocations: 267.4 kB / 422.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.109e-05/0.3343, allocations: 309.1 kB / 422.7 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.3354, allocations: 0.7066 MB / 423.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.3368, allocations: 1.142 MB / 424.5 MB, free: 4.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002592/0.3394, allocations: 1.964 MB / 426.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.3394, allocations: 4 kB / 426.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004106/0.3435, allocations: 2.526 MB / 429 MB, free: 164 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.3435, allocations: 11.94 kB / 429 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.3436, allocations: 16 kB / 429.1 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009608/0.3445, allocations: 425.2 kB / 429.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.3458, allocations: 355.4 kB / 429.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006445/0.3522, allocations: 7.116 MB / 436.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.3537, allocations: 115.9 kB / 437 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.3538, allocations: 63.94 kB / 437.1 MB, free: 7.652 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.001148/0.355, allocations: 0.7191 MB / 437.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002918/0.3553, allocations: 173.8 kB / 438 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003795/0.3591, allocations: 2.204 MB / 440.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.3591, allocations: 12 kB / 440.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.3591, allocations: 4 kB / 440.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.3591, allocations: 7.922 kB / 440.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007346/0.3665, allocations: 4.79 MB / 445 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.3665, allocations: 4 kB / 445 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009725/0.3675, allocations: 219.6 kB / 445.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.3686, allocations: 472.8 kB / 445.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.803e-05/0.3687, allocations: 31.98 kB / 445.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007992/0.3767, allocations: 8.688 MB / 454.4 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.3768, allocations: 11.92 kB / 454.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005225/0.382, allocations: 3.208 MB / 457.6 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/0.3831, allocations: 406.7 kB / 458 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/0.3833, allocations: 28 kB / 458.1 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009749/0.3843, allocations: 83.98 kB / 458.1 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002636/0.3846, allocations: 104.7 kB / 458.2 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.17e-05/0.3847, allocations: 39.98 kB / 458.3 MB, free: 1.645 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001586/0.3863, allocations: 1.071 MB / 459.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3863, allocations: 0 / 459.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001775/0.3881, allocations: 484 kB / 459.8 MB, free: 108 kB / 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.005382/0.3934, allocations: 3.866 MB / 463.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005146/0.3986, allocations: 2.791 MB / 466.5 MB, free: 9.293 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/0.3987, allocations: 4.062 kB / 466.5 MB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002439/0.4011, allocations: 1.473 MB / 468 MB, free: 7.762 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003441/0.4046, allocations: 479 kB / 468.4 MB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02984/0.4344, allocations: 19.65 MB / 488.1 MB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001497/0.436, allocations: 1.875 MB / 489.9 MB, free: 292 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00128/0.4372, allocations: 390.9 kB / 490.3 MB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/0.4383, allocations: 0.8742 MB / 491.2 MB, free: 15.02 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4383, allocations: 0 / 491.2 MB, free: 15.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1142/0.5525, allocations: 44.3 MB / 0.523 GB, free: 3.121 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/10.57, allocations: 15.88 kB / 0.523 GB, free: 3.105 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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_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.csv","/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