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.001265/0.001265, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 63.89 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2443, allocations: 50.55 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01191/0.2562, allocations: 10.36 MB / 419.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006138/0.2624, allocations: 3.474 MB / 422.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.2637, allocations: 55.75 kB / 422.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.2655, allocations: 0.7753 MB / 423.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002301/0.2678, allocations: 0.8424 MB / 424.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008999/0.2687, allocations: 427.4 kB / 424.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00316/0.2719, allocations: 2.759 MB / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002768/0.2747, allocations: 2.398 MB / 429.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001713/0.2764, allocations: 1.261 MB / 431.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002209/0.2786, allocations: 1.588 MB / 432.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000609/0.2792, allocations: 332 kB / 433.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009002/0.2801, allocations: 443.8 kB / 433.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000969/0.2811, allocations: 0.9388 MB / 434.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001779/0.2829, allocations: 1.509 MB / 436 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004836/0.2878, allocations: 4.402 MB / 440.4 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2878, allocations: 0 / 440.4 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2878, allocations: 4 kB / 440.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.808e-05/0.2879, allocations: 0 / 440.4 MB, free: 1.75 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.006163/0.2941, allocations: 3.14 MB / 443.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2941, allocations: 8.031 kB / 443.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004075/0.2945, allocations: 325 kB / 443.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008279/0.2954, allocations: 331 kB / 444.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/0.2981, allocations: 1.646 MB / 445.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.2982, allocations: 168.3 kB / 446 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003192/0.2986, allocations: 223.9 kB / 446.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004763/0.3033, allocations: 2.917 MB / 449.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.571e-05/0.3034, allocations: 7.938 kB / 449.1 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/0.3036, allocations: 95.98 kB / 449.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.3038, allocations: 112.3 kB / 449.3 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004282/0.3081, allocations: 2.433 MB / 451.8 MB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0149/0.323, allocations: 9.038 MB / 460.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/0.3256, allocations: 1.704 MB / 462.5 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/0.3274, allocations: 0.9813 MB / 463.5 MB, free: 10 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003108/0.3277, allocations: 203.2 kB / 463.7 MB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.3278, allocations: 47.5 kB / 463.7 MB, free: 9.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.946e-06/0.3278, allocations: 0 / 463.7 MB, free: 9.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01468/0.3425, allocations: 6.605 MB / 470.3 MB, free: 2.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.3426, allocations: 64.41 kB / 470.4 MB, free: 2.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002314/0.3449, allocations: 1.57 MB / 472 MB, free: 1.301 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.322e-05/0.345, allocations: 45.7 kB / 472 MB, free: 1.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009463/0.3459, allocations: 1.146 MB / 473.2 MB, free: 92 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003998/0.3463, allocations: 452.3 kB / 473.6 MB, free: 15.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004501/0.3468, allocations: 271.5 kB / 473.9 MB, free: 15.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3469, allocations: 305.1 kB / 474.2 MB, free: 15.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.3481, allocations: 0.7066 MB / 474.9 MB, free: 14.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.3497, allocations: 1.146 MB / 476 MB, free: 13.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002871/0.3526, allocations: 1.959 MB / 478 MB, free: 10.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.3526, allocations: 4 kB / 478 MB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004322/0.3569, allocations: 2.535 MB / 480.5 MB, free: 8.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.357, allocations: 12 kB / 480.5 MB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.357, allocations: 12 kB / 480.5 MB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.358, allocations: 427.3 kB / 480.9 MB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.3593, allocations: 351.5 kB / 481.3 MB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007493/0.3668, allocations: 7.127 MB / 488.4 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.3682, allocations: 111.8 kB / 488.5 MB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.3683, allocations: 63.94 kB / 488.6 MB, free: 15.8 MB / 414.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.001253/0.3696, allocations: 0.7121 MB / 489.3 MB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003279/0.3699, allocations: 174.9 kB / 489.5 MB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003945/0.3739, allocations: 2.21 MB / 491.7 MB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.3739, allocations: 12 kB / 491.7 MB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.3739, allocations: 11.88 kB / 491.7 MB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.3739, allocations: 7.984 kB / 491.7 MB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007918/0.3818, allocations: 4.768 MB / 496.5 MB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.3819, allocations: 4 kB / 496.5 MB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009369/0.3828, allocations: 223.6 kB / 496.7 MB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.384, allocations: 463.2 kB / 497.2 MB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.113e-05/0.3841, allocations: 31.98 kB / 497.2 MB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008879/0.393, allocations: 8.694 MB / 0.494 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.393, allocations: 7.938 kB / 0.494 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005417/0.3984, allocations: 3.227 MB / 0.4972 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008265/0.3993, allocations: 407.8 kB / 0.4976 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/0.3995, allocations: 32 kB / 0.4976 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008918/0.4004, allocations: 87.89 kB / 0.4977 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.4007, allocations: 96.75 kB / 0.4978 GB, free: 9.777 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.559e-05/0.4008, allocations: 39.98 kB / 0.4978 GB, free: 9.738 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001654/0.4024, allocations: 1.067 MB / 0.4989 GB, free: 8.676 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4025, allocations: 0 / 0.4989 GB, free: 8.676 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00162/0.4041, allocations: 496.1 kB / 0.4993 GB, free: 8.191 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.005707/0.4098, allocations: 3.868 MB / 0.5031 GB, free: 4.219 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004027/0.4138, allocations: 2.301 MB / 0.5054 GB, free: 1.855 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4139, allocations: 0 / 0.5054 GB, free: 1.855 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002527/0.4164, allocations: 1.478 MB / 0.5068 GB, free: 332 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/0.4188, allocations: 492.5 kB / 0.5073 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02928/0.4481, allocations: 17.93 MB / 0.5248 GB, free: 13.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.4498, allocations: 1.875 MB / 0.5266 GB, free: 11.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.451, allocations: 390.8 kB / 0.527 GB, free: 10.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/0.4522, allocations: 0.8781 MB / 0.5278 GB, free: 10.01 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4522, allocations: 4 kB / 0.5278 GB, free: 10.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.351/0.8032, allocations: 45.2 MB / 0.572 GB, free: 102.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.8, allocations: 15.27 kB / 0.572 GB, free: 102.5 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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