Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.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.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",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.001395/0.001395, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001364/0.001364, allocations: 187 kB / 18.67 MB, free: 4.387 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.377/1.377, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001775/0.001774, allocations: 51.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08366/0.08544, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL): time 0.1692/0.2547, allocations: 10.12 MB / 384.8 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007296/0.262, allocations: 3.286 MB / 388.1 MB, free: 6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.2642, allocations: 54.47 kB / 388.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002092/0.2663, allocations: 0.6966 MB / 388.8 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002909/0.2692, allocations: 0.837 MB / 389.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.2703, allocations: 413.6 kB / 390.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003314/0.2736, allocations: 2.975 MB / 393 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002373/0.276, allocations: 2.444 MB / 395.5 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.2779, allocations: 1.336 MB / 396.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002323/0.2803, allocations: 1.694 MB / 398.5 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005952/0.2809, allocations: 358.3 kB / 398.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.2819, allocations: 457.6 kB / 399.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008796/0.2828, allocations: 1.015 MB / 400.3 MB, free: 300 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.2848, allocations: 1.608 MB / 401.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005959/0.2908, allocations: 4.694 MB / 406.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2908, allocations: 0 / 406.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2909, allocations: 0 / 406.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.291, allocations: 1.438 kB / 406.6 MB, free: 12.46 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007728/0.2987, allocations: 3.331 MB / 410 MB, free: 10.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.2988, allocations: 13.02 kB / 410 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005221/0.2993, allocations: 343.5 kB / 410.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008919/0.3002, allocations: 341.7 kB / 410.6 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002991/0.3032, allocations: 1.671 MB / 412.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.3034, allocations: 183.5 kB / 412.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003486/0.3037, allocations: 229.9 kB / 412.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005515/0.3092, allocations: 3.133 MB / 415.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.758e-05/0.3093, allocations: 2.812 kB / 415.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.3096, allocations: 91.69 kB / 415.9 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.3097, allocations: 109.2 kB / 416 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004781/0.3145, allocations: 2.7 MB / 418.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01619/0.3307, allocations: 9.653 MB / 428.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002898/0.3336, allocations: 2.165 MB / 430.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00196/0.3356, allocations: 1.104 MB / 431.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000333/0.3359, allocations: 216.1 kB / 431.9 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/0.336, allocations: 43.56 kB / 431.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.787e-06/0.336, allocations: 0 / 431.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.01498/0.351, allocations: 6.757 MB / 438.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.3511, allocations: 68.72 kB / 438.7 MB, free: 15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002892/0.354, allocations: 1.747 MB / 440.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001788/0.3542, allocations: 49.64 kB / 440.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.3552, allocations: 1.178 MB / 441.7 MB, free: 12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004854/0.3557, allocations: 479.9 kB / 442.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004957/0.3562, allocations: 287.4 kB / 442.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3563, allocations: 313.1 kB / 442.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.3578, allocations: 0.7886 MB / 443.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.3596, allocations: 1.202 MB / 444.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003191/0.3628, allocations: 2.095 MB / 446.9 MB, free: 6.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/0.3628, allocations: 4 kB / 446.9 MB, free: 6.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005046/0.3679, allocations: 2.675 MB / 449.5 MB, free: 3.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.3679, allocations: 8 kB / 449.5 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.53e-05/0.3679, allocations: 15.98 kB / 449.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.369, allocations: 423.4 kB / 450 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/0.3704, allocations: 363.4 kB / 450.3 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007425/0.3778, allocations: 7.082 MB / 457.4 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/0.3796, allocations: 103.9 kB / 457.5 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.3797, allocations: 67.98 kB / 457.6 MB, free: 11.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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,11,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.001597/0.3813, allocations: 0.7901 MB / 458.4 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003922/0.3817, allocations: 194.8 kB / 458.6 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004294/0.386, allocations: 2.375 MB / 460.9 MB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.3861, allocations: 15.94 kB / 461 MB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.3861, allocations: 4 kB / 461 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.3861, allocations: 3.984 kB / 461 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009476/0.3956, allocations: 5.099 MB / 466.1 MB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/0.3956, allocations: 4 kB / 466.1 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.3967, allocations: 239.6 kB / 466.3 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.3979, allocations: 451.3 kB / 466.7 MB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.398, allocations: 31.98 kB / 466.8 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008824/0.4069, allocations: 8.648 MB / 475.4 MB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.4069, allocations: 7.938 kB / 475.4 MB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00592/0.4129, allocations: 3.526 MB / 478.9 MB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.4139, allocations: 443.8 kB / 479.4 MB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.4142, allocations: 35.98 kB / 479.4 MB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.4154, allocations: 83.91 kB / 479.5 MB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003083/0.4157, allocations: 120.7 kB / 479.6 MB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-05/0.4158, allocations: 39.98 kB / 479.7 MB, free: 4.348 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001859/0.4176, allocations: 1.202 MB / 480.9 MB, free: 3.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4177, allocations: 3.938 kB / 480.9 MB, free: 3.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001703/0.4194, allocations: 0.4999 MB / 481.4 MB, free: 2.648 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 111 * 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,11,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.005963/0.4253, allocations: 4.186 MB / 485.5 MB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004282/0.4296, allocations: 2.465 MB / 488 MB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.4297, allocations: 4.062 kB / 488 MB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002669/0.4323, allocations: 1.61 MB / 489.6 MB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.4349, allocations: 480.1 kB / 490.1 MB, free: 9.695 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03252/0.4674, allocations: 19.54 MB / 0.4977 GB, free: 5.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001891/0.4693, allocations: 1.997 MB / 0.4996 GB, free: 3.395 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.4707, allocations: 447.5 kB / 0.5001 GB, free: 2.953 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.472, allocations: 0.9171 MB / 0.501 GB, free: 2.035 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4721, allocations: 0 / 0.501 GB, free: 2.035 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09979/0.5719, allocations: 47.84 MB / 0.5477 GB, free: 2.066 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.34/26.91, allocations: 11.95 kB / 0.5477 GB, free: 2.055 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches