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.001116/0.001116, allocations: 105.9 kB / 17.06 MB, free: 6.004 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.001146/0.001146, allocations: 191 kB / 18 MB, free: 5.09 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.295/1.295, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000954/0.000954, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2416, allocations: 49.44 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01269/0.2544, allocations: 11.89 MB / 412.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006708/0.2611, allocations: 3.995 MB / 416.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.2623, allocations: 71.69 kB / 416.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001787/0.2641, allocations: 0.9384 MB / 417.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002323/0.2664, allocations: 1.017 MB / 418.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.2675, allocations: 0.5538 MB / 418.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003254/0.2707, allocations: 3.411 MB / 422.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003229/0.274, allocations: 3.081 MB / 425.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001887/0.2759, allocations: 1.593 MB / 426.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002331/0.2782, allocations: 2.04 MB / 428.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000529/0.2788, allocations: 436 kB / 429.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008518/0.2796, allocations: 0.535 MB / 429.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.2807, allocations: 1.262 MB / 431.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001785/0.2825, allocations: 1.936 MB / 433 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005608/0.2881, allocations: 5.698 MB / 438.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2881, allocations: 3.938 kB / 438.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2882, allocations: 0 / 438.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.463e-05/0.2882, allocations: 0 / 438.7 MB, free: 2.172 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007268/0.2955, allocations: 4.033 MB / 442.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.2956, allocations: 8.031 kB / 442.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005021/0.2961, allocations: 422 kB / 443.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009634/0.2971, allocations: 422.5 kB / 443.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003624/0.3007, allocations: 2.143 MB / 445.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.3009, allocations: 230 kB / 445.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004338/0.3013, allocations: 295.9 kB / 446.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005778/0.3071, allocations: 3.851 MB / 450.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.074e-05/0.3072, allocations: 15.73 kB / 450.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00026/0.3075, allocations: 120 kB / 450.2 MB, free: 6.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/0.3076, allocations: 153.7 kB / 450.4 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004957/0.3126, allocations: 3.259 MB / 453.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01698/0.3296, allocations: 12.07 MB / 465.7 MB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.332, allocations: 1.932 MB / 467.6 MB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00183/0.3338, allocations: 1.145 MB / 468.8 MB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002889/0.3341, allocations: 211.5 kB / 469 MB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.3342, allocations: 43.88 kB / 469 MB, free: 3.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.637e-06/0.3342, allocations: 4 kB / 469 MB, free: 3.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01341/0.3476, allocations: 7.058 MB / 476.1 MB, free: 11.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.3477, allocations: 68.72 kB / 476.1 MB, free: 11.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003432/0.3512, allocations: 2.032 MB / 478.2 MB, free: 9.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.3513, allocations: 49.7 kB / 478.2 MB, free: 9.715 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.3524, allocations: 1.499 MB / 479.7 MB, free: 8.207 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004751/0.3528, allocations: 0.5539 MB / 480.3 MB, free: 7.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005993/0.3535, allocations: 351.4 kB / 480.6 MB, free: 7.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3536, allocations: 313.1 kB / 480.9 MB, free: 6.988 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.355, allocations: 0.8745 MB / 481.8 MB, free: 6.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/0.3568, allocations: 1.454 MB / 483.3 MB, free: 4.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003334/0.3601, allocations: 2.502 MB / 485.8 MB, free: 1.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/0.3601, allocations: 8 kB / 485.8 MB, free: 1.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004938/0.3651, allocations: 3.015 MB / 488.8 MB, free: 14.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.3651, allocations: 12 kB / 488.8 MB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.153e-05/0.3652, allocations: 28.38 kB / 488.8 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008891/0.3661, allocations: 387.1 kB / 489.2 MB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.3678, allocations: 479.2 kB / 489.7 MB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006174/0.3739, allocations: 6.694 MB / 496.4 MB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.3756, allocations: 139.8 kB / 496.5 MB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001928/0.3758, allocations: 87.98 kB / 496.6 MB, free: 6.363 MB / 414.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.001645/0.3775, allocations: 0.9275 MB / 497.5 MB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005355/0.378, allocations: 234.5 kB / 497.7 MB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00429/0.3823, allocations: 2.598 MB / 0.4886 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.3824, allocations: 16 kB / 0.4886 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.3824, allocations: 4 kB / 0.4886 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.866e-05/0.3824, allocations: 11.95 kB / 0.4886 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.3927, allocations: 5.835 MB / 0.4943 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.3928, allocations: 4 kB / 0.4943 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.394, allocations: 291.6 kB / 0.4946 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009946/0.395, allocations: 403 kB / 0.495 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.3951, allocations: 39.97 kB / 0.495 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007075/0.4022, allocations: 8.268 MB / 0.5031 GB, free: 2.977 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4022, allocations: 4 kB / 0.5031 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005816/0.4081, allocations: 3.851 MB / 0.5069 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.4093, allocations: 495.4 kB / 0.5074 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004595/0.4098, allocations: 39.98 kB / 0.5074 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.411, allocations: 99.83 kB / 0.5075 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.4112, allocations: 109.1 kB / 0.5076 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.4113, allocations: 51.92 kB / 0.5076 GB, free: 14.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002303/0.4136, allocations: 1.386 MB / 0.509 GB, free: 12.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4137, allocations: 8 kB / 0.509 GB, free: 12.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002001/0.4157, allocations: 0.5624 MB / 0.5096 GB, free: 12.24 MB / 446.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.005887/0.4216, allocations: 4.501 MB / 0.5139 GB, free: 7.633 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003867/0.4254, allocations: 2.636 MB / 0.5165 GB, free: 4.938 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.4255, allocations: 0 / 0.5165 GB, free: 4.938 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/0.4275, allocations: 1.574 MB / 0.5181 GB, free: 3.316 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/0.4304, allocations: 0.5491 MB / 0.5186 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2182/0.6486, allocations: 22.15 MB / 0.5402 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001467/0.6501, allocations: 2.254 MB / 0.5424 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001375/0.6515, allocations: 0.5228 MB / 0.5429 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/0.6527, allocations: 1.188 MB / 0.5441 GB, free: 127.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.001e-06/0.6527, allocations: 0 / 0.5441 GB, free: 127.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07824/0.731, allocations: 54.43 MB / 0.5973 GB, free: 79.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/14.05, allocations: 11.64 kB / 0.5973 GB, free: 79.64 MB / 462.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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