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.001308/0.001308, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001479/0.001479, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.331/1.331, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001161/0.001161, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08148/0.08265, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.1801/0.2628, allocations: 11.61 MB / 386.3 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008248/0.2712, allocations: 3.959 MB / 390.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002448/0.2736, allocations: 64.12 kB / 390.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002349/0.2761, allocations: 0.9226 MB / 391.2 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003594/0.2797, allocations: 1 MB / 392.2 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.2812, allocations: 0.5213 MB / 392.7 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0042/0.2854, allocations: 3.298 MB / 396 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003299/0.2887, allocations: 2.976 MB / 399 MB, free: 56 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002714/0.2914, allocations: 1.537 MB / 400.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003732/0.2952, allocations: 1.973 MB / 402.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001146/0.2963, allocations: 422.6 kB / 402.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002109/0.2985, allocations: 0.5199 MB / 403.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001864/0.3003, allocations: 1.226 MB / 404.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003625/0.304, allocations: 1.881 MB / 406.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007495/0.3115, allocations: 5.534 MB / 412.1 MB, free: 8.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3116, allocations: 0 / 412.1 MB, free: 8.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.165e-06/0.3116, allocations: 0.875 kB / 412.1 MB, free: 8.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000212/0.3118, allocations: 0 / 412.1 MB, free: 8.461 MB / 334.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.009968/0.3218, allocations: 3.895 MB / 416 MB, free: 5.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.3218, allocations: 17.08 kB / 416 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007445/0.3226, allocations: 410.3 kB / 416.4 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/0.3239, allocations: 409.9 kB / 416.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004091/0.328, allocations: 1.961 MB / 418.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.3282, allocations: 214 kB / 419 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004952/0.3287, allocations: 291.9 kB / 419.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006236/0.3349, allocations: 3.705 MB / 423 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.851e-05/0.335, allocations: 11.95 kB / 423 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.3353, allocations: 113.6 kB / 423.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001448/0.3355, allocations: 145.5 kB / 423.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00531/0.3408, allocations: 3.102 MB / 426.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.363, allocations: 11.54 MB / 437.9 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002527/0.3656, allocations: 1.909 MB / 439.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/0.3673, allocations: 1.077 MB / 440.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003086/0.3677, allocations: 211.2 kB / 441.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.3677, allocations: 43.56 kB / 441.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.416e-06/0.3677, allocations: 0 / 441.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.0132/0.3809, allocations: 6.576 MB / 447.7 MB, free: 6.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.381, allocations: 68.66 kB / 447.7 MB, free: 6.023 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002936/0.384, allocations: 1.99 MB / 449.7 MB, free: 3.992 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.3841, allocations: 49.7 kB / 449.8 MB, free: 3.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009944/0.3851, allocations: 1.44 MB / 451.2 MB, free: 2.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004647/0.3856, allocations: 0.5084 MB / 451.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005119/0.3861, allocations: 327.4 kB / 452.1 MB, free: 1.645 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.3862, allocations: 309.1 kB / 452.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.3875, allocations: 0.8198 MB / 453.2 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.3891, allocations: 1.379 MB / 454.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.392, allocations: 2.361 MB / 456.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.3921, allocations: 8 kB / 456.9 MB, free: 12.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004724/0.3968, allocations: 2.859 MB / 459.8 MB, free: 9.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.3969, allocations: 16.06 kB / 459.8 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.217e-05/0.3969, allocations: 16 kB / 459.8 MB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009172/0.3978, allocations: 391.1 kB / 460.2 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.3995, allocations: 439.2 kB / 460.6 MB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005931/0.4055, allocations: 6.701 MB / 467.3 MB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.4074, allocations: 119.8 kB / 467.4 MB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.4077, allocations: 83.98 kB / 467.5 MB, free: 1.207 MB / 382.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.00159/0.4093, allocations: 0.9116 MB / 468.4 MB, free: 292 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004744/0.4097, allocations: 222.5 kB / 468.7 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003939/0.4137, allocations: 2.421 MB / 471.1 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.4137, allocations: 19.94 kB / 471.1 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.4137, allocations: 4 kB / 471.1 MB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.4138, allocations: 7.969 kB / 471.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00992/0.4237, allocations: 5.509 MB / 476.6 MB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.4237, allocations: 4 kB / 476.6 MB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.4248, allocations: 263.6 kB / 476.9 MB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009933/0.4258, allocations: 403.8 kB / 477.3 MB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.997e-05/0.426, allocations: 35.98 kB / 477.3 MB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00717/0.4331, allocations: 8.259 MB / 485.6 MB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.4332, allocations: 7.938 kB / 485.6 MB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00559/0.4388, allocations: 3.62 MB / 489.2 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.4399, allocations: 471.6 kB / 489.7 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002902/0.4402, allocations: 35.98 kB / 489.7 MB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.4413, allocations: 91.89 kB / 489.8 MB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.4415, allocations: 101.1 kB / 489.9 MB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.594e-05/0.4416, allocations: 47.98 kB / 489.9 MB, free: 9.906 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001915/0.4435, allocations: 1.354 MB / 491.3 MB, free: 8.531 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4435, allocations: 4 kB / 491.3 MB, free: 8.527 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001885/0.4454, allocations: 0.5392 MB / 491.8 MB, free: 7.988 MB / 414.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.005315/0.4507, allocations: 4.271 MB / 496.1 MB, free: 3.605 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003674/0.4544, allocations: 2.503 MB / 498.6 MB, free: 1.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.4544, allocations: 0 / 498.6 MB, free: 1.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002013/0.4565, allocations: 1.5 MB / 0.4884 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002733/0.4592, allocations: 0.5364 MB / 0.4889 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03062/0.4898, allocations: 21.34 MB / 0.5097 GB, free: 8.773 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00186/0.4917, allocations: 2.201 MB / 0.5119 GB, free: 6.543 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001502/0.4932, allocations: 0.4979 MB / 0.5124 GB, free: 6.043 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/0.4947, allocations: 1.14 MB / 0.5135 GB, free: 4.902 MB / 446.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4947, allocations: 0 / 0.5135 GB, free: 4.902 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2601/0.7548, allocations: 52.27 MB / 0.5645 GB, free: 152.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.33, allocations: 9 kB / 0.5645 GB, free: 152.2 MB / 478.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