Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_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.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_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.001489/0.00149, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001754/0.001754, allocations: 192 kB / 18.51 MB, free: 4.508 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.387/1.387, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001237/0.001238, allocations: 51.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08825, allocations: 46.64 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL): time 0.01285/0.1011, allocations: 11.74 MB / 339.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007519/0.1087, allocations: 3.975 MB / 343.1 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00173/0.1105, allocations: 59.75 kB / 343.2 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002755/0.1133, allocations: 0.8461 MB / 344 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003213/0.1165, allocations: 0.9783 MB / 345 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.1181, allocations: 0.5266 MB / 345.5 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004261/0.1224, allocations: 3.456 MB / 349 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004005/0.1264, allocations: 2.669 MB / 351.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00229/0.1287, allocations: 1.522 MB / 353.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003244/0.132, allocations: 1.938 MB / 355.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001149/0.1332, allocations: 408 kB / 355.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.1351, allocations: 0.644 MB / 356.1 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001764/0.1368, allocations: 1.149 MB / 357.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00355/0.1404, allocations: 1.843 MB / 359.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006162/0.1466, allocations: 5.296 MB / 364.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1466, allocations: 0 / 364.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1466, allocations: 4 kB / 364.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001075/0.1468, allocations: 0 / 364.4 MB, free: 15.11 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.007875/0.1546, allocations: 3.719 MB / 368.2 MB, free: 11.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.1547, allocations: 8.031 kB / 368.2 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004774/0.1552, allocations: 384.1 kB / 368.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.1566, allocations: 436.6 kB / 369 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003192/0.1598, allocations: 1.84 MB / 370.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.16, allocations: 209.4 kB / 371 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003547/0.1603, allocations: 268 kB / 371.3 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005736/0.1661, allocations: 3.513 MB / 374.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.218e-05/0.1662, allocations: 11.89 kB / 374.8 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002479/0.1664, allocations: 112 kB / 374.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/0.1666, allocations: 121.3 kB / 375 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005092/0.1717, allocations: 2.968 MB / 378 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1852/0.3569, allocations: 11.1 MB / 389.1 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/0.3597, allocations: 2.282 MB / 391.4 MB, free: 44.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001972/0.3617, allocations: 1.193 MB / 392.6 MB, free: 43.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002916/0.362, allocations: 210.1 kB / 392.8 MB, free: 43.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.362, allocations: 45.75 kB / 392.8 MB, free: 43.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 4.839e-06/0.362, allocations: 4 kB / 392.8 MB, free: 43.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01548/0.3775, allocations: 7.479 MB / 400.3 MB, free: 39.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.3776, allocations: 64.5 kB / 400.4 MB, free: 39.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00306/0.3806, allocations: 1.976 MB / 402.3 MB, free: 38.28 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000191/0.3809, allocations: 56.22 kB / 402.4 MB, free: 38.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008261/0.3817, allocations: 1.315 MB / 403.7 MB, free: 37.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.3821, allocations: 0.503 MB / 404.2 MB, free: 36.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004996/0.3826, allocations: 323.7 kB / 404.5 MB, free: 36.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.531e-05/0.3827, allocations: 305.8 kB / 404.8 MB, free: 36.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.384, allocations: 0.879 MB / 405.7 MB, free: 35.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.3856, allocations: 1.375 MB / 407.1 MB, free: 34.47 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002728/0.3883, allocations: 2.389 MB / 409.5 MB, free: 31.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.3883, allocations: 4 kB / 409.5 MB, free: 31.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004186/0.3925, allocations: 2.97 MB / 412.4 MB, free: 28.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.3926, allocations: 13.36 kB / 412.5 MB, free: 28.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.3926, allocations: 20 kB / 412.5 MB, free: 28.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.3936, allocations: 465 kB / 412.9 MB, free: 28.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/0.395, allocations: 435.3 kB / 413.3 MB, free: 27.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005202/0.4002, allocations: 6.101 MB / 419.5 MB, free: 21.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.4022, allocations: 123.8 kB / 419.6 MB, free: 21.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.4023, allocations: 76 kB / 419.6 MB, free: 21.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001347/0.4037, allocations: 0.8554 MB / 420.5 MB, free: 20.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004074/0.4041, allocations: 209.5 kB / 420.7 MB, free: 20.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/0.4078, allocations: 2.583 MB / 423.3 MB, free: 17.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/0.4078, allocations: 19.94 kB / 423.3 MB, free: 17.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.4078, allocations: 8 kB / 423.3 MB, free: 17.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.4079, allocations: 11.97 kB / 423.3 MB, free: 17.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007415/0.4153, allocations: 5.632 MB / 429 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.4153, allocations: 4.094 kB / 429 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.4164, allocations: 283.6 kB / 429.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.4175, allocations: 0.4982 MB / 429.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.801e-05/0.4176, allocations: 43.98 kB / 429.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005655/0.4233, allocations: 7.683 MB / 437.5 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4233, allocations: 4 kB / 437.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005176/0.4285, allocations: 3.843 MB / 441.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008991/0.4294, allocations: 478.4 kB / 441.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.4297, allocations: 40 kB / 441.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.4309, allocations: 95.88 kB / 441.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/0.4311, allocations: 125 kB / 442 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.609e-05/0.4312, allocations: 43.98 kB / 442.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001908/0.4331, allocations: 1.359 MB / 443.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4332, allocations: 0 / 443.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001851/0.435, allocations: 0.5865 MB / 444 MB, free: 12.3 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,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.006384/0.4414, allocations: 4.524 MB / 448.5 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006139/0.4476, allocations: 3.34 MB / 451.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.4476, allocations: 8.25 kB / 451.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00264/0.4502, allocations: 1.622 MB / 453.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/0.4526, allocations: 499.5 kB / 454 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03519/0.4878, allocations: 24.25 MB / 478.2 MB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001852/0.4897, allocations: 2.131 MB / 480.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001578/0.4913, allocations: 473 kB / 480.8 MB, free: 5.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/0.4927, allocations: 1.062 MB / 481.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of SimCode: time 1.724e-06/0.4927, allocations: 0 / 481.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2956/0.7883, allocations: 52.2 MB / 0.5216 GB, free: 139.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.15, allocations: 3.938 kB / 0.5216 GB, free: 139.9 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_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/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches