Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 106.7 kB / 16.92 MB, free: 5.781 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.00103/0.00103, allocations: 191.5 kB / 17.85 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009941/0.0009941, allocations: 52.05 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09303, allocations: 49.43 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01072/0.1038, allocations: 9.633 MB / 359.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005308/0.1091, allocations: 3.088 MB / 362.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.1104, allocations: 59.69 kB / 362.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.1121, allocations: 0.6791 MB / 363.6 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001927/0.1141, allocations: 0.7648 MB / 364.4 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007122/0.1148, allocations: 389.5 kB / 364.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002165/0.117, allocations: 2.526 MB / 367.3 MB, free: 3.133 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002303/0.1193, allocations: 2.334 MB / 369.6 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1502/0.2695, allocations: 1.171 MB / 370.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00209/0.2716, allocations: 1.493 MB / 372.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005256/0.2721, allocations: 319.9 kB / 372.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008507/0.273, allocations: 417.6 kB / 373 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007931/0.2738, allocations: 0.8996 MB / 373.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.2751, allocations: 1.415 MB / 375.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003614/0.2787, allocations: 4.1 MB / 379.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2787, allocations: 0 / 379.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2787, allocations: 1.281 kB / 379.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.934e-05/0.2788, allocations: 0 / 379.4 MB, free: 11.32 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.005363/0.2842, allocations: 2.907 MB / 382.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2842, allocations: 9.375 kB / 382.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00036/0.2846, allocations: 311.2 kB / 382.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007196/0.2853, allocations: 291.6 kB / 382.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.2874, allocations: 1.49 MB / 384.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.2876, allocations: 166.2 kB / 384.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002979/0.2879, allocations: 212.6 kB / 384.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004139/0.292, allocations: 2.798 MB / 387.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-05/0.2921, allocations: 11.03 kB / 387.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002088/0.2923, allocations: 85.06 kB / 387.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.2924, allocations: 109.8 kB / 387.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003801/0.2962, allocations: 2.347 MB / 390.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01098/0.3072, allocations: 8.592 MB / 398.7 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002305/0.3096, allocations: 1.704 MB / 400.4 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001652/0.3112, allocations: 0.974 MB / 401.4 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000295/0.3115, allocations: 202.5 kB / 401.6 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3116, allocations: 42.75 kB / 401.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 4.479e-06/0.3116, allocations: 3.984 kB / 401.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.0133/0.3249, allocations: 6.233 MB / 407.9 MB, free: 8.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.325, allocations: 68.34 kB / 408 MB, free: 7.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002027/0.327, allocations: 1.437 MB / 409.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.767e-05/0.3271, allocations: 49.7 kB / 409.4 MB, free: 6.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007109/0.3278, allocations: 1.041 MB / 410.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.3281, allocations: 411.7 kB / 410.9 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004081/0.3286, allocations: 247.5 kB / 411.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3287, allocations: 365.9 kB / 411.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.3299, allocations: 0.6871 MB / 412.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.3313, allocations: 1.067 MB / 413.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002622/0.3339, allocations: 1.868 MB / 415.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.433e-06/0.3339, allocations: 8 kB / 415.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004044/0.338, allocations: 2.406 MB / 417.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.338, allocations: 12 kB / 417.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.338, allocations: 15.98 kB / 417.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009716/0.339, allocations: 418 kB / 418 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.3402, allocations: 330.4 kB / 418.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006793/0.347, allocations: 7.055 MB / 425.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.3484, allocations: 99.8 kB / 425.4 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.3485, allocations: 60 kB / 425.5 MB, free: 5.809 MB / 334.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.001147/0.3497, allocations: 0.6899 MB / 426.2 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002643/0.3499, allocations: 154.1 kB / 426.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0037/0.3536, allocations: 2.128 MB / 428.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.3537, allocations: 12 kB / 428.5 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.3537, allocations: 8 kB / 428.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.3537, allocations: 3.984 kB / 428.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007349/0.361, allocations: 4.583 MB / 433.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.3611, allocations: 4 kB / 433.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/0.362, allocations: 214.8 kB / 433.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001136/0.3632, allocations: 445.7 kB / 433.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.741e-05/0.3633, allocations: 35.98 kB / 433.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008424/0.3717, allocations: 8.628 MB / 442.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.3717, allocations: 7 kB / 442.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005089/0.3768, allocations: 3.094 MB / 445.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008143/0.3777, allocations: 379 kB / 445.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/0.3779, allocations: 39.98 kB / 445.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008915/0.3788, allocations: 75.91 kB / 446 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/0.3791, allocations: 100.5 kB / 446.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-05/0.3792, allocations: 39.98 kB / 446.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001454/0.3806, allocations: 0.9851 MB / 447.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3806, allocations: 0 / 447.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001716/0.3824, allocations: 460.1 kB / 447.5 MB, free: 15.08 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.005379/0.3877, allocations: 3.758 MB / 451.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004803/0.3926, allocations: 2.704 MB / 454 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.3926, allocations: 4 kB / 454 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.3949, allocations: 1.435 MB / 455.4 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002132/0.397, allocations: 412.2 kB / 455.8 MB, free: 6.691 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02512/0.4222, allocations: 18.32 MB / 474.2 MB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001424/0.4236, allocations: 1.807 MB / 476 MB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.4247, allocations: 369.6 kB / 476.3 MB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009931/0.4257, allocations: 0.8229 MB / 477.1 MB, free: 300 kB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4257, allocations: 0 / 477.1 MB, free: 300 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08078/0.5065, allocations: 41 MB / 0.506 GB, free: 7.766 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.773/10.28, allocations: 6.609 kB / 0.506 GB, free: 7.762 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches