Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 113.2 kB / 17.73 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 48.3 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.08644, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.1664/0.2529, allocations: 9.584 MB / 384.2 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00553/0.2584, allocations: 3.153 MB / 387.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001679/0.2602, allocations: 54.53 kB / 387.4 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002056/0.2623, allocations: 0.6738 MB / 388.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002803/0.2651, allocations: 0.7509 MB / 388.9 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.2663, allocations: 396.1 kB / 389.3 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003551/0.2699, allocations: 2.553 MB / 391.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002798/0.2727, allocations: 2.297 MB / 394.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001988/0.2747, allocations: 1.171 MB / 395.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002524/0.2772, allocations: 1.492 MB / 396.8 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008165/0.2781, allocations: 325.5 kB / 397.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001352/0.2794, allocations: 421.3 kB / 397.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009781/0.2804, allocations: 0.894 MB / 398.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001918/0.2824, allocations: 1.42 MB / 399.8 MB, free: 440 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005251/0.2876, allocations: 4.168 MB / 404 MB, free: 14.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2877, allocations: 1 kB / 404 MB, free: 14.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2877, allocations: 0 / 404 MB, free: 14.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001143/0.2878, allocations: 0 / 404 MB, free: 14.24 MB / 334.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.007649/0.2955, allocations: 2.966 MB / 407 MB, free: 12.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.2955, allocations: 9.75 kB / 407 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006157/0.2961, allocations: 312.9 kB / 407.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009269/0.2971, allocations: 302.4 kB / 407.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003065/0.3002, allocations: 1.45 MB / 409 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.3004, allocations: 166.1 kB / 409.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004535/0.3008, allocations: 215.5 kB / 409.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005967/0.3068, allocations: 2.801 MB / 412.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.972e-05/0.3069, allocations: 10.48 kB / 412.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00022/0.3071, allocations: 80.41 kB / 412.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/0.3072, allocations: 108.3 kB / 412.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004491/0.3117, allocations: 2.343 MB / 414.7 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01618/0.3279, allocations: 8.52 MB / 423.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.3308, allocations: 1.703 MB / 424.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001933/0.3327, allocations: 0.9566 MB / 425.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003343/0.3331, allocations: 207.2 kB / 426.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.045e-05/0.3331, allocations: 51.5 kB / 426.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=101): time 2.796e-06/0.3332, allocations: 0 / 426.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=116): time 0.0145/0.3477, allocations: 6.142 MB / 432.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.3477, allocations: 64.41 kB / 432.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/0.3504, allocations: 1.437 MB / 433.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.3505, allocations: 53.7 kB / 433.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009194/0.3515, allocations: 1.06 MB / 434.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004712/0.3519, allocations: 432.3 kB / 435.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004889/0.3524, allocations: 251.5 kB / 435.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3526, allocations: 361.9 kB / 435.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.3539, allocations: 0.687 MB / 436.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.3555, allocations: 1.074 MB / 437.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002879/0.3584, allocations: 1.86 MB / 439.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.3584, allocations: 7.938 kB / 439.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004519/0.363, allocations: 2.422 MB / 442 MB, free: 11.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.363, allocations: 12 kB / 442 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.363, allocations: 12 kB / 442 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.3641, allocations: 415.3 kB / 442.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.3653, allocations: 327.5 kB / 442.7 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007782/0.3731, allocations: 7.042 MB / 449.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.3746, allocations: 103.9 kB / 449.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/0.3748, allocations: 67.98 kB / 449.9 MB, free: 3.066 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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.001394/0.3762, allocations: 0.6931 MB / 450.6 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000449/0.3767, allocations: 167 kB / 450.8 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004117/0.3808, allocations: 2.111 MB / 452.9 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.3808, allocations: 16 kB / 452.9 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.3808, allocations: 4 kB / 452.9 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.3809, allocations: 3.984 kB / 452.9 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008891/0.3898, allocations: 4.561 MB / 457.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.3898, allocations: 4 kB / 457.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009132/0.3907, allocations: 211.7 kB / 457.7 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.392, allocations: 443.3 kB / 458.1 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.3921, allocations: 39.97 kB / 458.2 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008864/0.401, allocations: 8.629 MB / 466.8 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/0.401, allocations: 7.938 kB / 466.8 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005486/0.4065, allocations: 3.112 MB / 469.9 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009459/0.4075, allocations: 391.9 kB / 470.3 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004371/0.4079, allocations: 31.98 kB / 470.3 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.409, allocations: 83.84 kB / 470.4 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/0.4093, allocations: 92.81 kB / 470.5 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.589e-05/0.4094, allocations: 39.98 kB / 470.5 MB, free: 13.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00191/0.4113, allocations: 0.9925 MB / 471.5 MB, free: 12.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.32e-07/0.4114, allocations: 0 / 471.5 MB, free: 12.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002154/0.4135, allocations: 463.9 kB / 472 MB, free: 12.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (103): * Single equations (assignments): 99 * 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.00614/0.4197, allocations: 3.749 MB / 475.7 MB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004078/0.4238, allocations: 2.223 MB / 478 MB, free: 5.992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4238, allocations: 3.938 kB / 478 MB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.4264, allocations: 1.446 MB / 479.4 MB, free: 4.492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.429, allocations: 428.8 kB / 479.8 MB, free: 4.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03109/0.4601, allocations: 16.94 MB / 496.8 MB, free: 2.426 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002212/0.4624, allocations: 1.803 MB / 498.6 MB, free: 0.5898 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001317/0.4637, allocations: 361.6 kB / 498.9 MB, free: 236 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/0.4652, allocations: 0.8157 MB / 499.7 MB, free: 15.41 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4652, allocations: 4 kB / 499.7 MB, free: 15.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09367/0.5589, allocations: 41.84 MB / 0.5289 GB, free: 5.445 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.16, allocations: 8.25 kB / 0.5289 GB, free: 5.434 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches