Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",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.0008962/0.0008962, allocations: 86.97 kB / 16.65 MB, free: 6.535 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.000933/0.0009331, allocations: 176 kB / 17.56 MB, free: 6.18 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.284/1.284, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002601/0.0002601, allocations: 4 kB / 301.5 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09151, allocations: 50.42 MB / 352 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01091/0.1025, allocations: 11.18 MB / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006754/0.1093, allocations: 3.891 MB / 367 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00139/0.1107, allocations: 71.62 kB / 367.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.1124, allocations: 0.7691 MB / 367.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002452/0.1149, allocations: 0.8665 MB / 368.7 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.1159, allocations: 499.5 kB / 369.2 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1934/0.3093, allocations: 3.694 MB / 372.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003936/0.3133, allocations: 2.601 MB / 375.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002443/0.3158, allocations: 1.158 MB / 376.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003356/0.3191, allocations: 1.668 MB / 378.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/0.3202, allocations: 169.2 kB / 378.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00204/0.3223, allocations: 292 kB / 378.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001964/0.3243, allocations: 0.9378 MB / 379.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004609/0.3289, allocations: 1.599 MB / 381.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008576/0.3375, allocations: 5.277 MB / 386.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.3376, allocations: 0 / 386.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.3376, allocations: 0.7188 kB / 386.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002409/0.3378, allocations: 0 / 386.6 MB, free: 7.547 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01145/0.3493, allocations: 3.296 MB / 389.9 MB, free: 5.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.493e-05/0.3494, allocations: 9.75 kB / 389.9 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002332/0.3517, allocations: 422 kB / 390.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002311/0.3541, allocations: 413.9 kB / 390.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004615/0.3587, allocations: 2.067 MB / 392.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/0.3589, allocations: 233.7 kB / 393 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005064/0.3595, allocations: 296.4 kB / 393.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006641/0.3661, allocations: 3.851 MB / 397.2 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.107e-05/0.3662, allocations: 15.56 kB / 397.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002584/0.3665, allocations: 119.9 kB / 397.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/0.3666, allocations: 150 kB / 397.4 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004999/0.3716, allocations: 3.259 MB / 400.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01864/0.3903, allocations: 12.21 MB / 412.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.3927, allocations: 1.942 MB / 414.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001814/0.3945, allocations: 1.164 MB / 416 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002938/0.3948, allocations: 211.6 kB / 416.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.3949, allocations: 51.88 kB / 416.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.336e-06/0.3949, allocations: 0 / 416.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01353/0.4084, allocations: 7.048 MB / 423.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.4085, allocations: 68.72 kB / 423.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003184/0.4117, allocations: 2.032 MB / 425.4 MB, free: 6.258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.4118, allocations: 53.64 kB / 425.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.4128, allocations: 1.462 MB / 426.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004488/0.4133, allocations: 0.5358 MB / 427.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/0.4135, allocations: 154.8 kB / 427.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4136, allocations: 305.1 kB / 427.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.415, allocations: 0.8784 MB / 428.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/0.4167, allocations: 1.454 MB / 430.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003255/0.42, allocations: 2.514 MB / 432.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.42, allocations: 4 kB / 432.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005003/0.425, allocations: 3.003 MB / 435.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.425, allocations: 19.98 kB / 435.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.666e-05/0.4251, allocations: 16 kB / 435.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009092/0.426, allocations: 391.2 kB / 436.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.4276, allocations: 472.4 kB / 436.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00562/0.4333, allocations: 6.159 MB / 442.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.4352, allocations: 135.8 kB / 443 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.4353, allocations: 80 kB / 443 MB, free: 3.945 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * 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 {(2,9,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.001968/0.4373, allocations: 0.9373 MB / 444 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004461/0.4377, allocations: 217.3 kB / 444.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.4421, allocations: 2.592 MB / 446.8 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/0.4421, allocations: 19.98 kB / 446.8 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.4421, allocations: 4 kB / 446.8 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.4421, allocations: 7.969 kB / 446.8 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009564/0.4517, allocations: 5.864 MB / 452.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.4517, allocations: 4 kB / 452.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.453, allocations: 297.5 kB / 453 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.454, allocations: 405.4 kB / 453.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.4541, allocations: 43.97 kB / 453.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007173/0.4613, allocations: 7.588 MB / 461 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.4613, allocations: 15.31 kB / 461 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006106/0.4674, allocations: 3.846 MB / 464.8 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/0.4687, allocations: 0.4903 MB / 465.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002726/0.469, allocations: 32 kB / 465.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4702, allocations: 99.89 kB / 465.5 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/0.4704, allocations: 116.5 kB / 465.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.854e-05/0.4705, allocations: 47.98 kB / 465.6 MB, free: 12.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002359/0.4729, allocations: 1.382 MB / 467 MB, free: 11.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4729, allocations: 0 / 467 MB, free: 11.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002277/0.4752, allocations: 0.5625 MB / 467.6 MB, free: 10.72 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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 {(2,9,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.006102/0.4813, allocations: 4.501 MB / 472.1 MB, free: 6.145 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004132/0.4855, allocations: 2.627 MB / 474.7 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.4855, allocations: 0 / 474.7 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00214/0.4876, allocations: 1.586 MB / 476.3 MB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/0.4918, allocations: 0.512 MB / 476.8 MB, free: 1.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04474/0.5365, allocations: 26.07 MB / 0.4911 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002107/0.5387, allocations: 2.255 MB / 0.4933 GB, free: 2.875 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001811/0.5405, allocations: 0.5259 MB / 0.4938 GB, free: 2.348 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/0.5421, allocations: 1.19 MB / 0.495 GB, free: 1.156 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5421, allocations: 0 / 0.495 GB, free: 1.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.285/1.828, allocations: 51.23 MB / 0.545 GB, free: 147.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/1.828, allocations: 253.8 kB / 0.5452 GB, free: 147.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.249/5.077, allocations: 0 / 0.5452 GB, free: 147.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches