Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.00136/0.00136, allocations: 105.3 kB / 17.58 MB, free: 5.445 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.00147/0.00147, allocations: 191.9 kB / 18.51 MB, free: 4.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 55.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08803/0.0893, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01293/0.1023, allocations: 11.61 MB / 339 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008268/0.1106, allocations: 3.95 MB / 342.9 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002219/0.1129, allocations: 63.69 kB / 343 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002375/0.1153, allocations: 0.8654 MB / 343.9 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003045/0.1184, allocations: 0.9434 MB / 344.8 MB, free: 2.855 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.1195, allocations: 0.5188 MB / 345.3 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003193/0.1227, allocations: 3.286 MB / 348.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003102/0.1258, allocations: 2.981 MB / 351.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.1279, allocations: 1.522 MB / 353.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002855/0.1308, allocations: 1.973 MB / 355.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007514/0.1315, allocations: 424 kB / 355.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001052/0.1326, allocations: 0.5233 MB / 356 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.1338, allocations: 1.219 MB / 357.3 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002294/0.1361, allocations: 1.882 MB / 359.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005865/0.142, allocations: 5.433 MB / 364.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.098e-05/0.142, allocations: 0 / 364.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.142, allocations: 4 kB / 364.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001904/0.1422, allocations: 0 / 364.6 MB, free: 14.98 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.009354/0.1516, allocations: 3.813 MB / 368.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.1517, allocations: 15.89 kB / 368.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005818/0.1523, allocations: 401.2 kB / 368.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009919/0.1533, allocations: 392.6 kB / 369.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003542/0.1568, allocations: 1.942 MB / 371.1 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.157, allocations: 221.8 kB / 371.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004359/0.1575, allocations: 291.9 kB / 371.6 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006482/0.164, allocations: 3.693 MB / 375.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.081e-05/0.1641, allocations: 3.984 kB / 375.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/0.1643, allocations: 120 kB / 375.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.1645, allocations: 141.4 kB / 375.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005289/0.1698, allocations: 3.106 MB / 378.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1874/0.3572, allocations: 11.64 MB / 390.3 MB, free: 45.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/0.3593, allocations: 1.901 MB / 392.2 MB, free: 43.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.3609, allocations: 1.094 MB / 393.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002467/0.3612, allocations: 210.2 kB / 393.5 MB, free: 43.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3612, allocations: 45.78 kB / 393.6 MB, free: 43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.357e-06/0.3612, allocations: 4 kB / 393.6 MB, free: 43 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01119/0.3724, allocations: 6.513 MB / 400.1 MB, free: 39.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.3725, allocations: 68.41 kB / 400.1 MB, free: 39.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00227/0.3748, allocations: 1.988 MB / 402.1 MB, free: 38.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.767e-05/0.3749, allocations: 56.48 kB / 402.2 MB, free: 38.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000605/0.3755, allocations: 1.413 MB / 403.6 MB, free: 36.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002498/0.3757, allocations: 484.3 kB / 404.1 MB, free: 36.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003976/0.3761, allocations: 327.5 kB / 404.4 MB, free: 36.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.158e-05/0.3762, allocations: 301.1 kB / 404.7 MB, free: 35.99 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009789/0.3772, allocations: 0.8189 MB / 405.5 MB, free: 35.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.3784, allocations: 1.381 MB / 406.9 MB, free: 34.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002279/0.3807, allocations: 2.367 MB / 409.3 MB, free: 31.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.3807, allocations: 8 kB / 409.3 MB, free: 31.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003788/0.3845, allocations: 2.861 MB / 412.1 MB, free: 29.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.3845, allocations: 12 kB / 412.1 MB, free: 29.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.3846, allocations: 16 kB / 412.1 MB, free: 29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007663/0.3853, allocations: 392.8 kB / 412.5 MB, free: 28.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.3866, allocations: 427.3 kB / 413 MB, free: 28.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00449/0.3911, allocations: 6.704 MB / 419.7 MB, free: 21.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.3926, allocations: 131.6 kB / 419.8 MB, free: 20.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.3927, allocations: 79.98 kB / 419.9 MB, free: 20.87 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * 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.001941/0.3947, allocations: 0.9116 MB / 420.8 MB, free: 19.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005255/0.3952, allocations: 205.5 kB / 421 MB, free: 19.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005176/0.4004, allocations: 2.421 MB / 423.4 MB, free: 17.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/0.4004, allocations: 16 kB / 423.4 MB, free: 17.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.4005, allocations: 6.734 kB / 423.4 MB, free: 17.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.4005, allocations: 3.984 kB / 423.4 MB, free: 17.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/0.4129, allocations: 5.531 MB / 429 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.521e-05/0.413, allocations: 4 kB / 429 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/0.4147, allocations: 255.6 kB / 429.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.4162, allocations: 415.1 kB / 429.6 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/0.4164, allocations: 43.98 kB / 429.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008044/0.4244, allocations: 8.251 MB / 437.9 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.4245, allocations: 4.188 kB / 437.9 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007793/0.4323, allocations: 3.61 MB / 441.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001537/0.4338, allocations: 478.3 kB / 442 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007353/0.4346, allocations: 39.88 kB / 442 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002013/0.4366, allocations: 83.89 kB / 442.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003538/0.437, allocations: 113 kB / 442.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.4372, allocations: 43.98 kB / 442.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.003724/0.4409, allocations: 1.361 MB / 443.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.4409, allocations: 0 / 443.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003342/0.4443, allocations: 0.5358 MB / 444.2 MB, free: 11.7 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (129): * Single equations (assignments): 125 * 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,1,100.0%), (1,6,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.008722/0.453, allocations: 4.249 MB / 448.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.008757/0.4618, allocations: 3.199 MB / 451.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/0.4619, allocations: 8.25 kB / 451.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003294/0.4652, allocations: 1.493 MB / 453.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004713/0.4699, allocations: 0.5416 MB / 453.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03951/0.5094, allocations: 23.69 MB / 477.3 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/0.5118, allocations: 2.209 MB / 479.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001541/0.5133, allocations: 0.494 MB / 480 MB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001479/0.5148, allocations: 1.136 MB / 481.2 MB, free: 4.422 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5148, allocations: 0 / 481.2 MB, free: 4.422 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09846/0.6133, allocations: 51.17 MB / 0.5199 GB, free: 1.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.81, allocations: 4.438 kB / 0.5199 GB, free: 1.102 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches