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.001097/0.001097, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001083/0.001083, allocations: 192 kB / 18.51 MB, free: 4.508 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.304/1.304, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001287/0.001287, allocations: 51.92 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08468/0.08598, allocations: 46.63 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01095/0.09698, allocations: 9.583 MB / 337 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00566/0.1027, allocations: 3.144 MB / 340.1 MB, free: 7.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00137/0.1041, allocations: 47.75 kB / 340.2 MB, free: 7.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.1061, allocations: 0.6636 MB / 340.8 MB, free: 6.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002698/0.1088, allocations: 0.7609 MB / 341.6 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.1101, allocations: 391.4 kB / 342 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003474/0.1136, allocations: 2.557 MB / 344.5 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003444/0.117, allocations: 2.294 MB / 346.8 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.1189, allocations: 1.172 MB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.1216, allocations: 1.499 MB / 349.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007838/0.1224, allocations: 316 kB / 349.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001209/0.1237, allocations: 423.8 kB / 350.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001314/0.125, allocations: 0.8922 MB / 351.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002247/0.1272, allocations: 1.419 MB / 352.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004248/0.1315, allocations: 4.105 MB / 356.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1315, allocations: 0 / 356.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1315, allocations: 0 / 356.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.691e-05/0.1316, allocations: 0 / 356.6 MB, free: 6.941 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.005445/0.1371, allocations: 2.893 MB / 359.5 MB, free: 3.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1371, allocations: 8.031 kB / 359.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003457/0.1375, allocations: 312.2 kB / 359.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006623/0.1382, allocations: 297.6 kB / 360.1 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.1403, allocations: 1.425 MB / 361.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.1405, allocations: 168.3 kB / 361.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002842/0.1408, allocations: 212 kB / 361.9 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004168/0.1449, allocations: 2.796 MB / 364.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.211e-05/0.145, allocations: 3.906 kB / 364.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001916/0.1452, allocations: 91.94 kB / 364.8 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.1453, allocations: 104.2 kB / 364.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003809/0.1491, allocations: 2.347 MB / 367.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01224/0.1614, allocations: 8.597 MB / 375.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.1638, allocations: 1.711 MB / 377.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.1654, allocations: 0.9723 MB / 378.5 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000293/0.1657, allocations: 203.2 kB / 378.7 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.1658, allocations: 55.5 kB / 378.8 MB, free: 120 kB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 1.168e-05/0.1658, allocations: 0 / 378.8 MB, free: 120 kB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.159/0.3248, allocations: 6.097 MB / 384.9 MB, free: 50.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3249, allocations: 63.44 kB / 385 MB, free: 50.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002047/0.3269, allocations: 1.442 MB / 386.4 MB, free: 49.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.523e-05/0.327, allocations: 46.84 kB / 386.4 MB, free: 49.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005748/0.3276, allocations: 1.039 MB / 387.5 MB, free: 48.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002523/0.3279, allocations: 406.9 kB / 387.9 MB, free: 48.37 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003653/0.3283, allocations: 252.7 kB / 388.1 MB, free: 48.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.325e-05/0.3283, allocations: 362.6 kB / 388.5 MB, free: 47.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.3294, allocations: 0.6823 MB / 389.2 MB, free: 47.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.3307, allocations: 1.074 MB / 390.2 MB, free: 46.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00225/0.3329, allocations: 1.865 MB / 392.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.3329, allocations: 3.906 kB / 392.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003597/0.3365, allocations: 2.397 MB / 394.5 MB, free: 44.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.3366, allocations: 13.56 kB / 394.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.3366, allocations: 11.5 kB / 394.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008796/0.3375, allocations: 425.2 kB / 394.9 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.3386, allocations: 326.7 kB / 395.3 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004926/0.3436, allocations: 7.038 MB / 402.3 MB, free: 39.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.3453, allocations: 102.2 kB / 402.4 MB, free: 39.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.3455, allocations: 57.06 kB / 402.5 MB, free: 39.05 MB / 318.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.001379/0.3469, allocations: 0.6993 MB / 403.2 MB, free: 38.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004457/0.3473, allocations: 155.2 kB / 403.3 MB, free: 38.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003241/0.3506, allocations: 2.122 MB / 405.4 MB, free: 37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3506, allocations: 12 kB / 405.4 MB, free: 36.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.3506, allocations: 4 kB / 405.4 MB, free: 36.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.3506, allocations: 11.97 kB / 405.5 MB, free: 36.97 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006185/0.3568, allocations: 4.576 MB / 410 MB, free: 32.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.3569, allocations: 4 kB / 410 MB, free: 32.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007791/0.3576, allocations: 211.7 kB / 410.2 MB, free: 32.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009245/0.3586, allocations: 451.5 kB / 410.7 MB, free: 31.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-05/0.3587, allocations: 44.8 kB / 410.7 MB, free: 31.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005359/0.364, allocations: 8.614 MB / 419.3 MB, free: 22.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.364, allocations: 4 kB / 419.3 MB, free: 22.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003681/0.3677, allocations: 3.112 MB / 422.5 MB, free: 19.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005341/0.3683, allocations: 376.5 kB / 422.8 MB, free: 18.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002005/0.3685, allocations: 35.92 kB / 422.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007946/0.3693, allocations: 79.91 kB / 422.9 MB, free: 18.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.3695, allocations: 96.81 kB / 423 MB, free: 18.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-05/0.3696, allocations: 43.92 kB / 423.1 MB, free: 18.6 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.3707, allocations: 0.9847 MB / 424.1 MB, free: 17.61 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3707, allocations: 4 kB / 424.1 MB, free: 17.61 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001469/0.3722, allocations: 452 kB / 424.5 MB, free: 17.17 MB / 318.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.003927/0.3761, allocations: 3.744 MB / 428.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003751/0.3799, allocations: 2.692 MB / 430.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3799, allocations: 0.875 kB / 430.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.3817, allocations: 1.444 MB / 432.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.3835, allocations: 432.2 kB / 432.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02188/0.4054, allocations: 18.35 MB / 451.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/0.4068, allocations: 1.799 MB / 453 MB, free: 3.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.4079, allocations: 365.6 kB / 453.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009715/0.4089, allocations: 0.8156 MB / 454.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of SimCode: time 4.9e-07/0.4089, allocations: 0 / 454.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07758/0.4864, allocations: 41 MB / 495.1 MB, free: 9.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.81, allocations: 12.05 kB / 495.1 MB, free: 9.016 MB / 382.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