Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 104 kB / 17.06 MB, free: 6.027 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.001636/0.001636, allocations: 195 kB / 18 MB, free: 5.105 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.257/1.257, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009145/0.0009145, allocations: 43.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.212, allocations: 49.45 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01108/0.2232, allocations: 10.3 MB / 410.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00597/0.2292, allocations: 3.427 MB / 414 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.2305, allocations: 55.75 kB / 414 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002004/0.2326, allocations: 0.7724 MB / 414.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002596/0.2352, allocations: 0.8346 MB / 415.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.2363, allocations: 419.4 kB / 416.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003158/0.2394, allocations: 2.747 MB / 418.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002907/0.2424, allocations: 2.41 MB / 421.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/0.2439, allocations: 1.258 MB / 422.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002247/0.2462, allocations: 1.58 MB / 424 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006671/0.2469, allocations: 336 kB / 424.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001006/0.2479, allocations: 439.8 kB / 424.8 MB, free: 116 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001044/0.2489, allocations: 0.9427 MB / 425.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.251, allocations: 1.505 MB / 427.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004118/0.2551, allocations: 4.373 MB / 431.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2551, allocations: 7.922 kB / 431.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2551, allocations: 0 / 431.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001138/0.2552, allocations: 0 / 431.6 MB, free: 9.262 MB / 350.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.006678/0.2619, allocations: 3.049 MB / 434.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.262, allocations: 16.02 kB / 434.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006372/0.2626, allocations: 321 kB / 435 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009007/0.2635, allocations: 309.4 kB / 435.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003155/0.2667, allocations: 1.629 MB / 436.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.2668, allocations: 168.4 kB / 437.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003583/0.2672, allocations: 227.9 kB / 437.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004906/0.2721, allocations: 2.909 MB / 440.2 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-05/0.2722, allocations: 7.938 kB / 440.2 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002011/0.2724, allocations: 92 kB / 440.3 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.2725, allocations: 116.3 kB / 440.5 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004177/0.2767, allocations: 2.426 MB / 442.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01349/0.2902, allocations: 9.02 MB / 451.9 MB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/0.2925, allocations: 1.704 MB / 453.6 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.2942, allocations: 0.9845 MB / 454.6 MB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002851/0.2945, allocations: 211.2 kB / 454.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.2945, allocations: 43.56 kB / 454.8 MB, free: 1.367 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.156e-06/0.2945, allocations: 0 / 454.8 MB, free: 1.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01345/0.308, allocations: 6.555 MB / 461.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.3081, allocations: 72.34 kB / 461.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002319/0.3104, allocations: 1.569 MB / 463 MB, free: 8.988 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.3105, allocations: 45.7 kB / 463.1 MB, free: 8.938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007315/0.3113, allocations: 1.108 MB / 464.2 MB, free: 7.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003375/0.3116, allocations: 429.9 kB / 464.6 MB, free: 7.387 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000434/0.312, allocations: 271.4 kB / 464.9 MB, free: 7.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.112e-05/0.3121, allocations: 305.1 kB / 465.2 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.3133, allocations: 0.7105 MB / 465.9 MB, free: 6.102 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.3147, allocations: 1.138 MB / 467 MB, free: 4.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002617/0.3173, allocations: 1.967 MB / 469 MB, free: 2.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.3173, allocations: 7.938 kB / 469 MB, free: 2.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004067/0.3214, allocations: 2.53 MB / 471.5 MB, free: 60 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.3214, allocations: 8.281 kB / 471.5 MB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.108e-05/0.3215, allocations: 20 kB / 471.5 MB, free: 32 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009524/0.3224, allocations: 415.1 kB / 471.9 MB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.3236, allocations: 351.5 kB / 472.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006656/0.3303, allocations: 7.122 MB / 479.4 MB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.3316, allocations: 111.7 kB / 479.5 MB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/0.3318, allocations: 67.94 kB / 479.6 MB, free: 7.559 MB / 398.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.001173/0.333, allocations: 0.7121 MB / 480.3 MB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003901/0.3334, allocations: 169.9 kB / 480.5 MB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/0.3371, allocations: 2.194 MB / 482.7 MB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.3371, allocations: 19.94 kB / 482.7 MB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.3371, allocations: 11.92 kB / 482.7 MB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.3371, allocations: 3.984 kB / 482.7 MB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007478/0.3446, allocations: 4.775 MB / 487.5 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.3447, allocations: 4 kB / 487.5 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008891/0.3455, allocations: 223.7 kB / 487.7 MB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.3466, allocations: 451.5 kB / 488.1 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.394e-05/0.3467, allocations: 31.98 kB / 488.2 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007644/0.3544, allocations: 8.687 MB / 496.9 MB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.3544, allocations: 4 kB / 496.9 MB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004812/0.3592, allocations: 3.218 MB / 0.4884 GB, free: 2.191 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009082/0.3602, allocations: 398.9 kB / 0.4887 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002055/0.3604, allocations: 28 kB / 0.4888 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008717/0.3612, allocations: 83.91 kB / 0.4888 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002278/0.3615, allocations: 100.7 kB / 0.4889 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.901e-05/0.3616, allocations: 39.98 kB / 0.489 GB, free: 1.535 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001453/0.363, allocations: 1.07 MB / 0.49 GB, free: 480 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.363, allocations: 0 / 0.49 GB, free: 480 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.001492/0.3645, allocations: 488.2 kB / 0.4905 GB, free: 15.99 MB / 430.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.005014/0.3696, allocations: 3.867 MB / 0.4943 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003473/0.373, allocations: 2.3 MB / 0.4965 GB, free: 9.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.3731, allocations: 4 kB / 0.4965 GB, free: 9.656 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002219/0.3753, allocations: 1.471 MB / 0.498 GB, free: 8.133 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/0.3774, allocations: 480.8 kB / 0.4984 GB, free: 7.676 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0246/0.402, allocations: 17.82 MB / 0.5158 GB, free: 5.105 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/0.4035, allocations: 1.867 MB / 0.5176 GB, free: 3.207 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.4045, allocations: 394.8 kB / 0.518 GB, free: 2.816 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/0.4056, allocations: 0.878 MB / 0.5189 GB, free: 1.938 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4056, allocations: 0 / 0.5189 GB, free: 1.938 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.12/4.525, allocations: 45.63 MB / 0.5634 GB, free: 114.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.95/27.47, allocations: 17 kB / 0.5634 GB, free: 114.3 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches